Skip to content

pnpm doesn't default the install script to node-gyp rebuild like npm does on a direct pnpm install of a local project #8293

@segevfiner

Description

@segevfiner

Verify latest release

  • I verified that the issue exists in the latest pnpm 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

  1. Run pnpm install. It will not run node-gyp rebuild.
  2. 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?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions