Repository navigation
gyp_main.py: error: no such option: --no-parallel #426
Description
Activity
I've the same since I upgraded to Ubuntu 14.04
Thanks for the hack, it works.
This is the commit that added the
--no-paralleloption.https://code.google.com/p/gyp/source/detail?r=1773&path=/trunk/pylib/gyp/__init__.py#
Hi. Is this hack still the best option?
@AaronM04 upgrading gyp from source solved the compilation error for me and the hack was not necessary. (I am running Fedora 20.)
Ah cool. I'll try that :)
If anyone is experiencing this problem on ubuntu, I hadn't realized that ubuntu has their own gyp package in the repositories that at some point got installed, as soon as I removed that, the npm version kicked I had installed in and this error went away(i.e. apt-get remove gyp)
Would it be too much to ask that node-gyp run
gyp --versionor some such and refrain from adding the--no-paralleloption if gyp is "too old"? That would save everyone a lot of trouble.@aviynw, thanks man, this solve my problem in Ubuntu 14.04!
@aviynw +1
OS : amazon Linux 3.14.23-22.44.amzn1.x86_64
node version : v0.10.33I am using mongoose.
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]be shown error message below when run node.
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS versionremoving gyp helped me, thanks @aviynw
@JeremyWei none of them worked for me,
- I tried editing the
/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.jsfile but couldn't find--no-paralleloption anywhere on that file. - Then I upgraded node-gyp to
v1.0.3which is latest available, still throwing the following error
apm install git-projects Installing git-projects to /home/iyogeshjoshi/.atom/packages ✗ > [email protected] install /tmp/apm-install-dir-115227-7025-16poy8t/node_modules/git-projects/node_modules/git-utils > node-gyp rebuild 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/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Linux 3.16.0-33-generic gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /tmp/apm-install-dir-115227-7025-16poy8t/node_modules/git-projects/node_modules/git-utils gyp ERR! node -v v0.10.35 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok npm ERR! Linux 3.16.0-33-generic npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/iyogeshjoshi/.atom/.apm/.apmrc" "--userconfig" "/home/iyogeshjoshi/.atom/.apmrc" "install" "/tmp/d-115227-7025-esxv5v/package.tgz" "--target=0.21.0" "--arch=x64" npm ERR! node v0.10.35 npm ERR! npm v2.5.1 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 git-utils 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 git-utils npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /tmp/apm-install-dir-115227-7025-16poy8t/npm-debug.log
- I tried editing the
@JeremyWei yes that worked thanks 👍 .
Which means we have to do both the steps upgrade and then hackingconfigure.jsfile.@aviynw thanks, that worked for me, too
@aviynw Uninstalling the
gyppackage in Ubuntu worked for me as well. Thanks!I tried to remove the gyp module, hack the configure.js file and it is still showing the same error. I also tried to remove the ~/.node-gyp folder. Still nothing.
I am using Debian Wheezy of BeagleBone Black
node v0.9.9
npm 0.2.15
node-gyp v2.0.2I ran into this problem and solved it via
sudo apt-get remove gyp.@ekg worked for me as well. Thanks!
@aviynw removing it worked for me too, thanks!
Upgrading the version of gyp used by npm worked for me:
sudo npm explore npm -g -- npm install node-gyp@latesthttps://github.com/nodejs/node-gyp/wiki/Updating-npm%27s-bundled-node-gyp
Upgrading bundled node-gyp didn't work for me, but removing OS gyp did. Thanks, @aviynw !
I tried to dig a little deeper into this. It just seems so wrong that you need to poke internals of bundled package or remove system packages. Looks like
runGypinnode-gyp/lib/configure.jsis genuinely trying to run the embedded gyp and only depend on python from OS// execute `gyp` from the current target nodedir argv.unshift(gyp_script) // make sure python uses files that came with this particular node package var pypath = new PathArray(process.env, 'PYTHONPATH') pypath.unshift(path.join(__dirname, '..', 'gyp', 'pylib'))But apparently that isolation effort fails. Looks like a bug to me.
It seems like upgrading
node-gypto a supported version will fix this problem, so going to close this this ticket for now since a fix has been identified.- added a commit that references this issue
on Sep 8, 2025
Hello,
When I try to install pg or bcrypt, I get the following error:
Regards,