Post-install for @prisma/photon fails
See original GitHub issueWhen I run npm i @prisma/photon
, I get
PS C:\Users\Me\Desktop\PROJECT\Prisma> npm i @prisma/photon
> @prisma/photon@2.0.0-preview019 postinstall C:\Users\Me\Desktop\PROJECT\Prisma\node_modules\@prisma\photon
> node scripts/postinstall.js
(node:28580) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'stderr' of undefined
at C:\Users\Me\Desktop\PROJECT\Prisma\node_modules\@prisma\photon\scripts\postinstall.js:63:11
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:28580) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:28580) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
npm WARN prisma@1.0.0 No description
npm WARN prisma@1.0.0 No repository field.
+ @prisma/photon@2.0.0-preview019
updated 1 package and audited 1 package in 7.287s
found 0 vulnerabilities
This is on Windows 10, NodeJS 13.5.0, npm 6.13.4
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
prisma/client did not initialize yet. Please run "prisma generate ...
prisma and have to use npx prisma generate . The solution for me is to restart the node application running npm start again....
Read more >prisma-upload-image - CodeSandbox
CodeSandbox is an online editor tailored for web applications.
Read more >How to fix “pod install” error in React Native on Mac M1
How to fix “pod install” error in React Native on Mac M1. Photo by Rahul Chakraborty on Unsplash. Picture this: you've finally found ......
Read more >prisma mongodb how to deal with schema update - You.com
Ryan's comment about adding a post install script for Prisma is a nice QOL ... I just ran into the following error while...
Read more >Postinstall scripts are not being run(solved)
If client is not generated you see this error Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve always installed it globally, since it’s what’s recommended by the quick start guide.
Thanks a lot for reporting 🙏 This issue is fixed in the latest version of
prisma2
. You can try it out withnpm i -g prisma2
.In case it’s not fixed for you - please let us know and we’ll reopen this issue!