prisma: Prisma Engine download failure
Discussed in https://github.com/prisma/prisma/discussions/17421
<div type='discussions-op-text'>Originally posted by salahawk January 19, 2023
Iβm now using PostgreSQL
with Prisma
.
I have postgresql@14
running on my machine.
And I 've installed prisma
in my repo.
But when I rum npx prisma db push
. it keeps reverting while trying to download Prisma Engine.
Can anyone please help me with this?
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 33 (10 by maintainers)
Yeah, as for my problem, it has resolved with time without any other involvements. We removed script for downloading prisma engines as well. Preinstall hooks are now working correctly for each build stage after updating prisma to v.4.10.0
Wow, great. thanks guys @crazydevlegend @wwayne @w1ldy0uth Your approaches all helped me resolve my issue.
Thanks for your support πββοΈπββοΈπββοΈπββοΈ
Hey, guys. for me, it was
node_module
version-related issue. I downgraded Prisma from^4.9.0
to^4.5.0
and it works fine. Iβm not sure why this happens (maybe not cause of network issue) - Iβd love to have the right reason from the development/maintenance team.The solution offered by @wwayne is the most suitable for this bug. I had the same issue while building Docker container. To solve it, I wrote the script that downloads required engines for my platform and moves it into
node_modules
.Download script:
Dockerfile:
However, this solution isnβt perfect because I gotta disable all pre/post-install scripts. Moreover, from time to time I get debug message
prisma:engines file <engine_name> exists but its version is undefined and we expect ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5
.P.S.: URLβs from script must be selected according to your platform and openssl verison.