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
Postinstall scripts are now always run after pnpm install is ran #7268
Comments
Hi there, My team is also encountering this issue and it is a breaking change for our code-generator product that we are building. We build in the Rescript/Ocaml eco system and rely on a lot of PPX binaries that all have postinstall scripts and break when the postinstall script gets rerun usually since the binary has already been moved. For example using this package: |
I'll look into it. |
Looks like it was caused by this PR: #7214. |
Thanks so much 🙏🏼 |
I'll release a fix today. |
Wow, that was so fast. Thank you for the quick patch, it's really appreciated! ❤️ |
Thanks for the amazingly fast patch. Much appreciated 🙏🏼 |
Hello. This is still happening to me on pnpm 8.15.3. Any tips on how to debug why ? Node.js version Operating System |
Last pnpm version that worked
8.9.2
pnpm version
8.10.0
Code to reproduce the issue
I can reproduce this on any repo that uses pnpm with dependencies with postinstall scripts:
If you revert back to pnpm
8.9.2
here, then you'll see the bug is fixed:https://github.com/mattlewis92/angular-calendar/blob/5477127c428391a0b0086da2126035ea001b5cff/package.json#L8
Expected behavior
Postinstall scripts are not ran when repeatedly running
pnpm install
Actual behavior
Postinstall scripts are always ran, regardless if nothing changed. This leads to slow performance
Additional information
No response
Node.js version
20.6.1
Operating System
macOS
The text was updated successfully, but these errors were encountered: