Can't install prisma from npm
Hi, trying to install prisma, bug got error
I'm trying different pc, internet, it doesn't help. Any ideas?
npm error code 1
npm error path C:\projects\pet\node_modules@prisma\engines
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/postinstall.js
npm error node:internal/process/promises:289
npm error triggerUncaughtException(err, true /* fromPromise */);
npm error ^
npm error
npm error Error: aborted
npm error at connResetException (node:internal/errors:787:14)
npm error at TLSSocket.socketCloseListener (node:_http_client:455:19)
npm error at TLSSocket.emit (node:events:530:35)
npm error at node:net:337:12
npm error at TCP.done (node:_tls_wrap:657:7) {
npm error code: 'ECONNRESET',
npm error attemptNumber: 1,
npm error retriesLeft: 2
npm error }
npm error
npm error Node.js v20.11.1
2 Replies
Skipping coffee for instant knowledge! Let's brew that AI answer now.
The error you're experiencing is a common network-related issue when installing Prisma. The
ECONNRESET error indicates that the connection was reset during the download of Prisma engines.
Based on the knowledge sources, this is typically caused by:
1. Network connectivity issues
2. Firewall or proxy settings
3. Temporary issues with Cloudflare (which Prisma uses for its binaries)
Solutions to try:
1. Try a different network connection
Several users reported success by switching to a different network, such as a mobile hotspot. As one user mentioned: "solved for me by connecting to another wifi (from phone hotspot)" Github Issue #10321.
2. Retry the installation
Sometimes this is just a temporary network issue and retrying the installation might work, especially if there were Cloudflare outages at the time of your attempt.
3. Check if you can manually download the binaries
Try accessing Prisma's binary URLs directly in your browser to check if you can reach them.
4. Try installing in a regular terminal instead of VSCode terminal
Some users reported that the issue only occurred in VSCode's terminal: "this seemed to only be a problem when running the install command in the vsc cli, from a regular old terminal everything went fine" Github Issue #20193.
The error shows that the download attempt has 2 retries left, but it seems the automatic retry mechanism might not be working correctly in your case. This is a known issue that has been addressed in newer versions of Prisma.
If none of these solutions work, you might want to try using a VPN or ask your network administrator if there are any restrictions that might be blocking the download.
🤔 Alright, thanks for letting us know that there's still some help needed. A team member will reply to you shortly.
In the meantime, please let us know any additional info, questions, or which parts of the answer may need clarification.Hey!
I assume this is resolved?