Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make failed with exit code: 2 #92

Open
jazzfog opened this issue May 9, 2016 · 1 comment
Open

make failed with exit code: 2 #92

jazzfog opened this issue May 9, 2016 · 1 comment

Comments

@jazzfog
Copy link

jazzfog commented May 9, 2016

I tried to install time module but this error keeps appearing

npm install time

> [email protected] install /__SX/node_modules/time
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.0.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/__SX/node_modules/time/.node-gyp"
make: Entering directory `/__SX/node_modules/time/build'
  CXX(target) Release/obj.target/time/src/time.o
make: g++: Command not found
make: *** [Release/obj.target/time/src/time.o] Error 127
make: Leaving directory `/__SX/node_modules/time/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-55-generic
gyp ERR! command "/node/bin/node" "/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /__SX/node_modules/time
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 3.13.0-55-generic
npm ERR! argv "/node/bin/node" "/usr/local/bin/npm" "install" "time"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.6
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 time 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 time
npm ERR! There is likely additional logging output above.

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

I run it in ubuntu 14.04 vm provisioned by Vagrant.

@Simone-cogno
Copy link

+1 Same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants