-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
pnpm version: 6.14.7
Code to reproduce the issue:
- Add a preinstall script to package.json:
"preinstall": "npx only-allow yarn"
- Run
pnpm install
Expected behavior:
preinstall
should run before install
.
Actual behavior:
install
runs before preinstall
and prepare
.
Additional information:
node -v
prints: 16.9.0- Windows, macOS, or Linux?: Debian GNU/Linux 10 5.10.0-0.bpo.5-amd64
Related
- Similarly broken behaviour in npmv7: [BUG] Preinstall script runs after installing dependencies npm/cli#2660
- Resolution to fix: https://github.com/npm/rfcs/blob/da73d3fd50a40e742f2d3755238ecdb8a6758d7f/meetings/2021-07-21.md#pr-403-rfc-add-preunpack-life-cycle-script---ryansonshine
- yarn (1, not berry) does this in the correct order
cherryblossom000, fearclear, frolic and sibenmao