question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Post-install for @prisma/photon fails

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ehhthingcommented, Dec 26, 2019

I’ve always installed it globally, since it’s what’s recommended by the quick start guide.

0reactions
timsuchanekcommented, Mar 5, 2020

Thanks a lot for reporting 🙏 This issue is fixed in the latest version of prisma2. You can try it out with npm i -g prisma2.

In case it’s not fixed for you - please let us know and we’ll reopen this issue!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found