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

gyp_main.py: error: no such option: --no-parallel #434

Closed
dibu28 opened this issue Apr 25, 2014 · 4 comments
Closed

gyp_main.py: error: no such option: --no-parallel #434

dibu28 opened this issue Apr 25, 2014 · 4 comments

Comments

@dibu28
Copy link

dibu28 commented Apr 25, 2014

I have error installing pm2 package with 'npm install -g pm2' on Ubuntu 14
node.js version: v0.10.25
npm version: 1.4.7

from error log:
gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 2

@soyuka
Copy link
Collaborator

soyuka commented Apr 25, 2014

More log please

@dibu28
Copy link
Author

dibu28 commented Apr 28, 2014

Full log:

root@ubuntu:/home/user/ghost# npm install pm2 -g
npm http GET https://registry.npmjs.org/pm2
npm http 304 https://registry.npmjs.org/pm2
npm http GET https://registry.npmjs.org/pm2-multimeter
npm http GET https://registry.npmjs.org/cli-table
npm http GET https://registry.npmjs.org/axon-rpc
npm http GET https://registry.npmjs.org/pm2-interface
npm http GET https://registry.npmjs.org/axon
npm http GET https://registry.npmjs.org/usage
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/cron
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/eventemitter2
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/chokidar
npm http GET https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/pm2-multimeter
npm http 304 https://registry.npmjs.org/axon
npm http 304 https://registry.npmjs.org/cli-table
npm http 304 https://registry.npmjs.org/pm2-interface
npm http 304 https://registry.npmjs.org/axon-rpc
npm http 304 https://registry.npmjs.org/usage
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/eventemitter2
npm http 304 https://registry.npmjs.org/cron
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/chokidar
npm http 304 https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/coffee-script/-/coffee-script-1.7.0.tgz
npm http 200 https://registry.npmjs.org/coffee-script/-/coffee-script-1.7.0.tgz
npm http GET https://registry.npmjs.org/recursive-readdir
npm http GET https://registry.npmjs.org/fsevents
npm http GET https://registry.npmjs.org/charm
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/configurable
npm http GET https://registry.npmjs.org/escape-regexp
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/fsevents
npm http 304 https://registry.npmjs.org/charm
npm http 304 https://registry.npmjs.org/recursive-readdir
npm WARN optional dep failed, continuing fsevents@0.2.0
npm http 304 https://registry.npmjs.org/bindings

> usage@0.3.9 install /usr/lib/node_modules/pm2/node_modules/usage
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.25"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/pm2/node_modules/usage/.node-gyp"
gyp http GET http://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz
gyp http GET http://nodejs.org/dist/v0.10.25/SHASUMS.txt
gyp http GET http://nodejs.org/dist/v0.10.25/SHASUMS.txt
gyp http 200 http://nodejs.org/dist/v0.10.25/SHASUMS.txt
gyp http 200 http://nodejs.org/dist/v0.10.25/SHASUMS.txt
Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/pm2/node_modules/usage
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm http 304 https://registry.npmjs.org/configurable
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/escape-regexp
npm http 304 https://registry.npmjs.org/keypress
npm ERR! usage@0.3.9 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the usage@0.3.9 install script.
npm ERR! This is most likely a problem with the usage 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 usage
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "pm2" "-g"
npm ERR! cwd /home/user/ghost
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.7
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/user/ghost/npm-debug.log
npm ERR! not ok code 0
root@ubuntu:/home/user/ghost# node -v
v0.10.25
root@ubuntu:/home/user/ghost# npm -v
1.4.7

Even if I use --unsafe-perm the same error remains.

@dibu28
Copy link
Author

dibu28 commented Apr 28, 2014

sudo apt-get remove gyp - helped me to solve problem.

@ekg
Copy link

ekg commented Sep 24, 2015

FWIW, I had the same problem (came here by searching around) and sudo apt-get remove gyp seems to have resolved it.

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

3 participants