Wiki instructions for updating npm
's bundled copy of node-gyp
need updating #2416
Closed
Description
See this comment: #2354 (comment)
To restate the main changes needed:
- The Windows instructions are incorrect, as they use the
-g
flag (meaning, to modify a standalone, global install ofnode-gyp
), whereas the instructions are supposed to be telling you how tocd
into thenpm
folder and locally update the copy/copies ofnode-gyp
installed there. The use of the-g
flag is inappropriate and leads tonpm
retaining its old/outdated copy ofnode-gyp
. - Also, it seems to be necessary (in my testing) to upgrade
node-gyp
in two places, as multiple packages directly depend onnode-gyp
; not onlynpm
itself, but the subdependencynpm-lifecycle
. One mustcd
into each package and upgrade itsnode-gyp
dependency manually.
Activity