You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to package a small Dockerfile and so I don't have node or npm installed, the expectation being that this is supposed to use rust engine prisma instead of node/ts.
How to reproduce
Use my schema.prisma and run prisma generate
You'll get this output
Installing Prisma CLI
An error ocurred while installing the Prisma CLI; npm install log: env: can't execute 'node': No such file or directoryTraceback (most recent call last): File "/usr/bin/prisma", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/lib/python3.12/site-packages/prisma/cli/cli.py", line 37, in main sys.exit(prisma.run(args[1:])) ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/prisma/cli/prisma.py", line 35, in run entrypoint = ensure_cached().entrypoint ^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/prisma/cli/prisma.py", line 99, in ensure_cached proc.check_returncode() File "/usr/lib/python3.12/subprocess.py", line 502, in check_returncode raise CalledProcessError(self.returncode, self.args, self.stdout,subprocess.CalledProcessError: Command '['/root/.cache/prisma-python/nodeenv/bin/npm', 'install', '[email protected]']' returned non-zero exit status 127.
Is it trying to install the engine? Why the node and not the rust one as outlined in documentation?
Install node version above 18.12.12 or something around that on linux, I followed this guide: Link for Ubuntu. Once that is done, globally install prisma using npm, using the command: npm install -g prisma.
Once prisma was globally installed, it worked for me to resolve the issue.
Thanks. I don’t want to install node. This is for a container image that runs python and nginx on alpine.
On Monday, December 30, 2024, 11:44, Hriday Keswani ***@***.***> wrote:
Install node version above 18.12.12 or something around that on linux, I followed this guide: Link for Ubuntu. Once that is done, globally install prisma using npm, using the command:
npm install -g prisma.
Once prisma was globally installed, it worked for me to resolve the issue.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Bug description
I'm trying to package a small Dockerfile and so I don't have node or npm installed, the expectation being that this is supposed to use rust engine prisma instead of node/ts.
How to reproduce
Use my
schema.prisma
and runprisma generate
You'll get this output
Is it trying to install the engine? Why the node and not the rust one as outlined in documentation?
Expected behavior
Not to require node/npm binaries.
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: