node-toobusy icon indicating copy to clipboard operation
node-toobusy copied to clipboard

[URGENT] It refuse to install with the latest NodeJS 0.12.2 on Ubuntu Server

Open MrBokeh opened this issue 10 years ago • 1 comments

Here is the error:

[email protected] install /root/node_modules/toobusy node-gyp rebuild

make: Entering directory /root/node_modules/toobusy/build' CXX(target) Release/obj.target/toobusy/toobusy.o make: g++: Command not found make: *** [Release/obj.target/toobusy/toobusy.o] Error 127 make: Leaving directory/root/node_modules/toobusy/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Linux 3.13.0-43-generic gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /root/node_modules/toobusy gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok npm ERR! Linux 3.13.0-43-generic npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "toobusy@latest" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the toobusy package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls toobusy npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /root/npm-debug.log

MrBokeh avatar May 27 '15 08:05 MrBokeh

There's your issue: g++: Command not found

Try

sudo apt-get update
sudo apt-get install build-essential

gigablah avatar Jul 02 '15 05:07 gigablah