Page MenuHomePhabricator
Paste P13120

gerrit:617770.9, npm i --no-optional [Ubuntu 20.04, node 10.15.3, npm 6.4.1]
ActivePublic

Authored by Mholloway on Oct 30 2020, 9:54 PM.
mholloway@mholloway:~/code/wikimedia/mediawiki/extensions/EventLogging$ node --version
v10.15.3
mholloway@mholloway:~/code/wikimedia/mediawiki/extensions/EventLogging$ npm --version
6.4.1
mholloway@mholloway:~/code/wikimedia/mediawiki/extensions/EventLogging$ npm i --no-optional
> dtrace-provider@0.8.8 install /home/mholloway/code/wikimedia/mediawiki/extensions/EventLogging/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js
make: Entering directory '/home/mholloway/code/wikimedia/mediawiki/extensions/EventLogging/node_modules/dtrace-provider/build'
TOUCH Release/obj.target/DTraceProviderStub.stamp
make: Leaving directory '/home/mholloway/code/wikimedia/mediawiki/extensions/EventLogging/node_modules/dtrace-provider/build'
> gc-stats@1.4.0 install /home/mholloway/code/wikimedia/mediawiki/extensions/EventLogging/node_modules/gc-stats
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
[gc-stats] Success: "/home/mholloway/code/wikimedia/mediawiki/extensions/EventLogging/node_modules/gc-stats/build/gcstats/v1.4.0/Release/node-v64-linux-x64/gcstats.node" is installed via remote
> heapdump@0.3.15 install /home/mholloway/code/wikimedia/mediawiki/extensions/EventLogging/node_modules/heapdump
> node-gyp rebuild
internal/modules/cjs/loader.js:584
throw err;
^
Error: Cannot find module 'nan'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at [eval]:1:1
at Script.runInThisContext (vm.js:119:20)
at Object.runInThisContext (vm.js:326:38)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at evalScript (internal/bootstrap/node.js:589:27)
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/mholloway/.nodenv/versions/10.15.3/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.0-52-generic
gyp ERR! command "/home/mholloway/.nodenv/versions/10.15.3/bin/node" "/home/mholloway/.nodenv/versions/10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mholloway/code/wikimedia/mediawiki/extensions/EventLogging/node_modules/heapdump
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
> unix-dgram@2.0.4 install /home/mholloway/code/wikimedia/mediawiki/extensions/EventLogging/node_modules/unix-dgram
> node-gyp rebuild
internal/modules/cjs/loader.js:584
throw err;
^
Error: Cannot find module 'nan'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at [eval]:1:1
at Script.runInThisContext (vm.js:119:20)
at Object.runInThisContext (vm.js:326:38)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at evalScript (internal/bootstrap/node.js:589:27)
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/mholloway/.nodenv/versions/10.15.3/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.0-52-generic
gyp ERR! command "/home/mholloway/.nodenv/versions/10.15.3/bin/node" "/home/mholloway/.nodenv/versions/10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mholloway/code/wikimedia/mediawiki/extensions/EventLogging/node_modules/unix-dgram
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.15 (node_modules/heapdump):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.15 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@2.0.4 (node_modules/unix-dgram):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unix-dgram@2.0.4 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
added 762 packages from 467 contributors and audited 772 packages in 7.614s
found 6 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details