From 2aedea0b2d3b23081fd86dae0bbec95646be0018 Mon Sep 17 00:00:00 2001 From: Jonathan ten Hove Date: Thu, 19 Jan 2023 16:32:16 +0100 Subject: [PATCH] Update Updating-npm-bundled-node-gyp.md --- docs/Updating-npm-bundled-node-gyp.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/Updating-npm-bundled-node-gyp.md b/docs/Updating-npm-bundled-node-gyp.md index 5759add3fe..6127dbf322 100644 --- a/docs/Updating-npm-bundled-node-gyp.md +++ b/docs/Updating-npm-bundled-node-gyp.md @@ -41,6 +41,13 @@ $ npm explore npm/node_modules/npm-lifecycle -g -- npm install node-gyp@latest If the command fails with a permissions error, please try `sudo` and then the command. +If you are using `nvm` and the logs indicate no change of the `node-gyp` version, you might need to specify the `node` version, for example do: +```bash +$ cd /home/user/.nvm/versions/node/v18.13.0/node_modules/npm/node_modules/@npmcli/run-script +$ npm install node-gyp@latest +``` + + ## Windows Windows is a bit trickier, since `npm` might be installed to the "Program Files" directory, which needs admin privileges in order to