Rust-free ORM still download engine binary
Hello 👋
Some (important) context first:
I'm developing a Prisma-powered project and I'm switching between 2 laptops:
- ✅ Ubuntu - Prisma works perfectly fine on it
- ⚠️ NixOS - Prisma fails to download engine binary
When I read about the new Rust-free ORM, I decided to switch to it because from my understanding reading the docs, there is no more engine binary (so I thought no more issue with OSes like NixOS).
I successfully installed it but it keeps trying to download the engine binary with the following error:
I checked if I configured things correctly multiple times and I even tried the official Nuxt 3 Prisma example (https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/nuxt3-starter-nodejs) but I got the exact same error when running
pnpm prisma generate
.
Am I misunderstanding something about how the new Rust-free ORM works or is it a bug?
Thanks for your help!4 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai
channel awaits if you're curious!Note that I have read the following issue https://github.com/prisma/prisma/issues/27703 and jkomyno's response but as stated in my initial post, I only tried to run
pnpm prisma generate
which shouldn't need engine binary.I wonder if this is related to NixOS, see this related GitHub Issue:
https://github.com/prisma/prisma/discussions/24405
To confirm, have you configured any custom prisma specific environment variables?
https://www.prisma.io/docs/orm/reference/environment-variables-reference#engine-environment-variables
Thanks for the reply 🙏
I already saw this issue but I thought the new Rust-free ORM would remove the need for platform-specific engine binary? (that's why I switched when I read about it)
Am I misunderstanding something about all of this?