Verify latest release
pnpm version
9.5.0
Which area(s) of pnpm are affected? (leave empty if unsure)
Package manager compatibility
Link to the code that reproduces this issue or a replay of the bug
https://github.com/nodejs/node-addon-examples/tree/main/src/1-getting-started/1_hello_world/node-addon-api
Reproduction steps
- Run
pnpm install. It will not run node-gyp rebuild.
- Run
npm install, it will run node-gyp rebuild
Describe the Bug
pnpm doesn't default the install script to node-gyp rebuild when binding.gyp exists and there is no preinstall and install script defined like npm does for the local project.
Expected Behavior
It should behave the same as npm.
Which Node.js version are you using?
18.20.3
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response