Skip to content

Instantly share code, notes, and snippets.

@terotil
Created December 11, 2015 08:24
Show Gist options
  • Save terotil/0845b0568ff174e560e5 to your computer and use it in GitHub Desktop.
Save terotil/0845b0568ff174e560e5 to your computer and use it in GitHub Desktop.
node-gyp mystery
> bufferutil@1.2.1 install /home/tero/foo/bar/node_modules/bufferutil
> 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 (/home/tero/.nvm/versions/node/v4.2.3/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
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.16.0-4-amd64
gyp ERR! command "/home/tero/.nvm/versions/node/v4.2.3/bin/node" "/home/tero/.nvm/versions/node/v4.2.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/tero/foo/bar/node_modules/bufferutil
gyp ERR! node -v v4.2.3
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
$ grep 'no-parallel' /home/tero/.nvm/versions/node/v4.2.3/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py
parser.add_option('--no-parallel', action='store_true', default=False,
$ /home/tero/.nvm/versions/node/v4.2.3/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp --no-parallel
Usage: gyp_main.py [options ...] [build_file ...]
gyp_main.py: error: no such option: --no-parallel
@terotil
Copy link
Author

terotil commented Dec 11, 2015

$ nvm --version
0.24.1
$ node --version
v4.2.3
$ npm --version
2.14.7

@terotil
Copy link
Author

terotil commented Dec 11, 2015

Resolved

System gyp was interfering. Removing it (as instructed in nodejs/node-gyp#426 (comment)) resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment