npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm install failed on node core

What I Wanted to Do

npm install works

What Happened Instead

failed. log:

Reproduction Steps


yarn works, failed on npm.

npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
> node-core@1.0.0 install /home/travis/build/nodejs/node
> node-gyp rebuild
gyp: binding.gyp not found (cwd: /home/travis/build/nodejs/node) 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/travis/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.4.0-101-generic
gyp ERR! command "/home/travis/.nvm/versions/node/v11.9.0/bin/node" "/home/travis/.nvm/versions/node/v11.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/travis/build/nodejs/node
gyp ERR! node -v v11.9.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! errno 1
npm ERR! node-core@1.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-core@1.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2019-02-12T15_12_53_402Z-debug.log
The command "eval npm install  " failed. Retrying, 2 of 3.

Platform Info

ubuntu and windows.

$ npm --versions
$ node -p process.platform