nvm-sh / nvm

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
MIT License
77.73k stars 7.8k forks source link

cant do npm i `recipe for target 'Release/obj.target/crc32c_sse42/src/crc32c_sse42.o' failed` #1848

Open rihannarickeminem opened 6 years ago

rihannarickeminem commented 6 years ago
npm i
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)

> sse4_crc32@5.2.0 install /home/z/project/node_modules/sse4_crc32
> node-gyp rebuild

make: вход в каталог «/home/z/project/node_modules/sse4_crc32/build»
  CXX(target) Release/obj.target/crc32c_sse42/src/crc32c_sse42.o
make: g++: Command not found
crc32c_sse42.target.mk:94: recipe for target 'Release/obj.target/crc32c_sse42/src/crc32c_sse42.o' failed
make: *** [Release/obj.target/crc32c_sse42/src/crc32c_sse42.o] Error 127
make: выход из каталога «/home/z/project/node_modules/sse4_crc32/build»
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/z/.nvm/versions/node/v10.1.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
gyp ERR! System Linux 4.15.0-23-generic
gyp ERR! command "/home/z/.nvm/versions/node/v10.1.0/bin/node" "/home/z/.nvm/versions/node/v10.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/z/project/node_modules/sse4_crc32
gyp ERR! node -v v10.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm WARN project@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sse4_crc32@5.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sse4_crc32@5.2.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/z/.npm/_logs/2018-06-23T06_28_18_494Z-debug.log

got this error also on node 10.5 and anyother

ljharb commented 6 years ago

As I indicated in #1847, this is not an issue with nvm - there's nothing to report here.

In addition, please fill out the issue template in its entirety if you're going to file an issue.