-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prisma CLI is throwing segmentation fault with node 14 (fs.writeFileSync arg) #2361
Comments
@pantharshit00 now I get With |
It looks like the |
Yes, looks like segfault is actually coming from nodejs |
So we added a workaround for this but the underlying bug in Node still exists So the easiest reproduction so far is
Output
|
Related issue (same? SIGSEGV) |
No, that issue was tracking Redwood segfault issue. @AhmedElywa reported the segfault in that issue thinking it was related but it is a separate issue so I opened this one. |
Do we have an issue that tracks the Node 14 problem on our side so we can close it when Node fixed it? Do we have a node issue to point people to? |
I ran into this problem today when trying to use |
We have tests running with Node |
- need to use node v16.19.1 to run seed command correctly - reference: prisma/prisma#2361
Bug description
Prisma CLI is throwing Segmentation fault when I try running it with node 14.
![image](https://user-images.githubusercontent.com/22195362/80975089-48948c00-8e3f-11ea-8567-bb1dee67863d.png)
I further investigated this and looks like our download script is failing:
I narrowed down this error to
prisma/src/packages/cli/scripts/download.js
Line 44 in 54e8f9e
So now node doesn't automatically convert number into string which
Date.now()
returns.How to reproduce
Steps to reproduce the behavior:
npm install -g @prisma/cli
to install Prisma CLI globallyprisma -v
Expected behavior
Prisma CLI should not return segmentation fault
Environment & setup
The text was updated successfully, but these errors were encountered: