Install fails on v8-debug@0.7.6 preinstall script 'node -e 'process.exit(0)''
See original GitHub issueI tried to re-install node-inspector because the network tab was not working. However, I get the following response when I try to do it. Any idea why the install might be failing?
holbmac0125:~ dmitri.grabov$ npm install node-inspector -g
> v8-profiler@5.6.3 preinstall /Users/dmitri.grabov/.npm-packages/lib/node_modules/.staging/v8-profiler-a21f5891
> npm install node-pre-gyp
/Users/dmitri.grabov/.npm-packages/bin/node-pre-gyp -> /Users/dmitri.grabov/.npm-packages/lib/node_modules/node-pre-gyp/bin/node-pre-gyp
/Users/dmitri.grabov/.npm-packages/lib
└── node-pre-gyp@0.6.28
> v8-debug@0.7.6 preinstall /Users/dmitri.grabov/.npm-packages/lib/node_modules/.staging/v8-debug-7b9d93f1
> node -e 'process.exit(0)'
/Users/dmitri.grabov/.npm-packages/lib
└── (empty)
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-inspector" "-g"
npm ERR! node v5.11.1
npm ERR! npm v3.8.6
npm ERR! file sh
npm ERR! path sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn sh
npm ERR! v8-debug@0.7.6 preinstall: `node -e 'process.exit(0)'`
npm ERR! spawn sh ENOENT
npm ERR!
npm ERR! Failed at the v8-debug@0.7.6 preinstall script 'node -e 'process.exit(0)''.
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 v8-debug package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node -e 'process.exit(0)'
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs v8-debug
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls v8-debug
npm ERR! There is likely additional logging output above.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:15
- Comments:22 (1 by maintainers)
Top Results From Across the Web
npm install (stop process gracefully on preinstall)
The best practice to preventing the installation of a node package it to return a non-zero exit code from the preinstall script.
Read more >A clean exit - Remy Sharp
The || exit 0 will cleanly exit the postinstall if there's any error. Of course, if the node command is successful it'll exit...
Read more >Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops with the error:
Read more >Prevent npm install for not supported Node.js versions
Use a local npm configuration to prevent users from installing your ... an error, and the installation process fails with a status code...
Read more >Husky - Git hooks
To add a command to a hook or create a new one, use husky add <file> [cmd] (don't forget to run husky install...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Something’s version is creeping up and breaking it, I don’t have enough experience to find out what it is but I’ve forked it and removed all the ^ and ~ from the version numbers in the package.json and it works.
I think it’s working now but I’ve never used node-inspector before so not sure if it’s 100% working.
Feel free to install it from my git repo for now until someone smarter finds out 😃
npm install git+https://github.com/markmcdermid/node-inspector.git -g
Edit: Doesn’t appear to be the v8 version because I tried just changing that to 0.7.1 first.
Just tried with node 6.1.0, npm 3.9.0, OS X 10.11.4. Installed fine.