node-inspector: Install fails on v8-debug@0.7.6 preinstall script 'node -e 'process.exit(0)''
I 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.
About this issue
- Original URL
- State: open
- Created 8 years ago
- Reactions: 15
- Comments: 22 (1 by maintainers)
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.
Same here As well, node version 7.4.0 npm version 4.0.5 OS X 10.12.3 Installed fail
Resolvent: Using nrm tools switch node version 6.2.0 success!
Password: …
@mhingston Thank you so much!
osx, the same issue