Skip to content

How upgrade node-gyp with npm 10? #2942

Closed
@Apollon77

Description

@Apollon77

Because of #2869 and the fact that Github upgraded Python to 3.12 in their newest macos runner image (see actions/runner#2972) I currently try to get node-gyp upgraded somehow.

In fact the instructions on https://github.com/nodejs/node-gyp/blob/main/docs/Updating-npm-bundled-node-gyp.md have no effect with npm 10 as it seems. I also tried several other options I found in the web but all are failingor do not use the new node-gyp.

What is the current way to do it?

The only way I found working BTW is to add node-gyp in the respective version as dependency to the module in question. Then Npm is using his version over the bundled one. maybe this should be the default solution (ok honestly ... maybe not "the best" solution but a working one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions