question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v8-debug failure while installation

See original GitHub issue

Hi, I cannot install node-inspector, for some weird reason. I’m told to contact v8-debug, but… if I try installing v8-debug, it works 😛 I’m using nvm. here’s stack trace:

npm install -g node-inspector

> v8-profiler@5.6.3 preinstall /home/bugari/.nvm/versions/node/v6.0.0/lib/node_modules/.staging/v8-profiler-9b619596
> npm install node-pre-gyp

/home/bugari/.nvm/versions/node/v6.0.0/bin/node-pre-gyp -> /home/bugari/.nvm/versions/node/v6.0.0/lib/node_modules/node-pre-gyp/bin/node-pre-gyp
/home/bugari/.nvm/versions/node/v6.0.0/lib
└── node-pre-gyp@0.6.28 


> v8-debug@0.7.7 preinstall /home/bugari/.nvm/versions/node/v6.0.0/lib/node_modules/.staging/v8-debug-a0ad040d
> node -e 'process.exit(0)'

/home/bugari/.nvm/versions/node/v6.0.0/lib
└── (empty)

npm ERR! Linux 4.2.0-34-generic
npm ERR! argv "/home/bugari/.nvm/versions/node/v6.0.0/bin/node" "/home/bugari/.nvm/versions/node/v6.0.0/bin/npm" "install" "-g" "node-inspector"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.9
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.7 preinstall: `node -e 'process.exit(0)'`
npm ERR! spawn sh ENOENT
npm ERR! 
npm ERR! Failed at the v8-debug@0.7.7 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.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/bugari/projekty/homepage/npm-debug.log
npm ERR! code 1

should I contact v8-debug, or is there other way?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:10
  • Comments:5

github_iconTop GitHub Comments

1reaction
juanleiguardacommented, Aug 31, 2016

The solution proposed by adam also worked for me.

0reactions
adam-phillippscommented, Jun 8, 2016

I had a nearly identical error too and solved it by installing nvm, then installing and using the newest version of node then trying the npm install command again.

Hopefully this helps someone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nodejs : Fix Error V8 debug failure while installation - YouTube
node-pre-gyp install --fallback-to-build, V8 debug failure while installation,Fixed Error V8 debug failure while installation,NO NAME 0053 ...
Read more >
Failed at the v8-debug@0.4.6 install script 'node-pre-gyp install
I was experiencing this same issue. Changing in the version for grunt-node-inspector to prepend a ">=" instead of a "~" got this to...
Read more >
v8-debug failure while installation - - Bountysource
Hi, I cannot install node-inspector, for some weird reason. I'm told to contact v8-debug, but.. if I try installing v8-debug, it works :P...
Read more >
v8Debug reference error while debugging NodeJS : WEB-22185
What steps will reproduce the problem? 1. Setup Node 6.2.2 2. Create a script 3. Debug it. What is the expected result? I...
Read more >
node-inspector/node-inspector - Gitter
Any ideas what causes a bunch of lines like this to show up while debugging? ... Failed at the v8-debug@0.5.2 install script 'node-pre-gyp...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found