Closed hyginous29 closed 6 years ago
Used versions
npm --version 3.10.10
node version v6.11.2
@hyginous29 Have you installed xcode command line tools?
@hyginous29 did you install node-gyp
?
Encountered same problem at first, OS X 10.12.6, node v8.4.0, npm v4.3.0:
sh: /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: Permission denied
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "webworker-threads"
npm ERR! node v8.4.0
npm ERR! npm v4.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! webworker-threads@0.7.13 install: `node-gyp rebuild`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the webworker-threads@0.7.13 install script 'node-gyp rebuild'.
But those were resolved after a sudo npm install -g node-gyp
on osx does not install (fails to rebuild node-gyp, same errors as @hyginous29 )
node@v9.2.1 npm@6.1.0 node-gyp@3.6.2
any idea? or alternative?
same problem yarn 1.12.1 node -v v10.13.0 node-gyp -v v3.8.0 ( have x-code command line tools)
That seems to be because /usr/local/lib/node_modules
was previously installed with sudo
and so this time it needs to be installed with sudo
as well.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 (node_modules/laas-client/node_modules/snappy): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: snappy@5.0.5 install:
node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm ERR! Darwin 16.6.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "laas-client@1.0.9" npm ERR! node v6.11.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLEnpm ERR! webworker-threads@0.7.12 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the webworker-threads@0.7.12 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the webworker-threads 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 information on how to open an issue for this project with: npm ERR! npm bugs webworker-threads npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls webworker-threads npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: