You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Instructions to update bundled node-gyp do not work on Windows + npm >= 10 #3172
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/@npmcli%2fdocs - Not found
npm error 404
npm error 404 '@npmcli/docs@^1.0.0' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
Activity
cclauss commentedon Jun 23, 2025
Would it be possible to create a GitHub Action that demonstrates this so we can all see how it fails?
tmm1 commentedon Jun 23, 2025
Okay, here you go: https://github.com/tmm1/node-gyp-win32-test/actions/runs/15813828506/job/44569072771
It shows first where node-gyp is preinstalled:
Then it tries to install into that
$NODE/node_modules/npmwhich fails with the message I posted above.And finally you can see the
npm ciinvocation which callsnode-gyp --versionstill prints 10.1 instead of 11.2tmm1 commentedon Jun 23, 2025
The solution is:
cclauss commentedon Jun 28, 2025
Would you be willing to create a pull request to update those docs?
Also please consider creating a second job in that GitHub Actions file that demonstrates that the old still fails and the proposed solution passes?
tmm1 commentedon Jul 1, 2025
I'm not able to invest in docs here. For posterity, I found that the documented solution for linux was quite slow and ended up using this instead: