-
-
Notifications
You must be signed in to change notification settings - Fork 934
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
pnpm get stuck when an extra install/postinstall script should also be installed #5706
Comments
|
Do you use |
Yes, but it's same with/without it |
Can confirm this issues also happens with yarn, in yarn on it's getting stuck when linking dependencies, and when you try to start it strangely restarts the console |
does it only happen with prisma? does it work if you run |
1, can confirm it happens with all dependencies that has install or postinstall script |
Hmmmm, I think I found the solution. It does something to do with Windows Legacy Console mode. And I come up with that solution.
That fixed my solution. |
Fascinating, so you are disabling this mode? |
Yeah, looks like it. I don't see a single relation between this but... |
We have a special command for detecting issues like this: Do you think we could detect if legacy mode is on and print an error about it? |
I've just tried disabling legacy console mode, to no avail. Running pnpm install gets stuck on a postinstall step, and after Ctrl + C it shows that windows message. Running any package.json script just immediately shows the windows message too. pnpm install completes with --ignore-scripts, but running any package.json script (dev, start, etc) still doesn't work. |
Aside from it not working for me, I don't think disabling this option is a viable solution, only a workaround. It seems to prevent Windows Terminal from becoming the default terminal application which obviously isn't great. |
🤷♂️ |
still happening, using npm now, that works |
I have had this issue as well since 2 days and after some debugging (removing PNPM and node and reinstalling them globally) I managed to pass the package that was blocking, to find out a package-level error saying this:
The issue I am now seeing is similar to this one falconair/nodefix#43 and seems to be related to a malformed JSON file (it would seem that there's a comma too many here:
This ultimately fails saying this:
pnpm: v8.7.1 EDIT: The 2nd time I launch the install command, it then blocks again on the previous successful package being readable-stream. So I think it matches the pattern seen here. |
pnpm version: 7.17
Code to reproduce the issue: pnpm add/install any dependency that has a post install script
Expected behavior: should also run the postinsall scripts
Actual behavior: waited for more than 30 mins, but no good luck. It just shows the message
(it failed because i did CTRL C)
Additional information: please correct me if i'm doing something wrong, i'm new to pnpm
node -v
prints: 18.2The text was updated successfully, but these errors were encountered: