Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failure to install v8-debug #26

Open
pei-han opened this issue May 2, 2016 · 31 comments
Open

failure to install v8-debug #26

pei-han opened this issue May 2, 2016 · 31 comments

Comments

@pei-han
Copy link

pei-han commented May 2, 2016

First of all,i install node-inspector by command "npm install -g node-inpsector --unsafe-perm" on Ubuntu 14.04LTS 32bit,and then it is successful.

Then i access http://127.0.0.1:8080/?port=5858,show "Can not find module $NPM_HOME/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.3/node-v47-linux-ia32/debug.node"on the console.

Below is error info on the period of installation
@3y3 can you help me? thanks so much.
npm install -g v8-debug
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/node-v5.6.0-linux-x86/bin/node" "/usr/node-v5.6.0-linux-x86/bin/npm" "install" "v8-debug"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0

npm ERR! Cannot read property 'target' of null
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /usr/npm-global/lib/node_modules/node-inspector/npm-debug.log
root@ubuntu:/usr/npm-global/lib/node_modules/node-inspector# npm install v8-debug -g
npm WARN lifecycle [email protected]~preinstall: cannot run in wd %s %s (wd=%s) [email protected] node -e 'process.exit(0)' /usr/npm-global/lib/node_modules/.staging/v8-debug-858816f5

[email protected] install /usr/npm-global/lib/node_modules/v8-debug
node-pre-gyp install --fallback-to-build

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.6.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/npm-global/lib/node_modules/v8-debug/.node-gyp"
make: Entering directory /usr/npm-global/lib/node_modules/v8-debug/build' make: *** No rule to make target../.node-gyp/5.6.0/include/node/common.gypi', needed by Makefile'. Stop. make: Leaving directory/usr/npm-global/lib/node_modules/v8-debug/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/node-v5.6.0-linux-x86/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.19.0-25-generic
gyp ERR! command "/usr/node-v5.6.0-linux-x86/bin/node" "/usr/node-v5.6.0-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/npm-global/lib/node_modules/v8-debug/build/debug/v0.7.3/node-v47-linux-ia32/debug.node" "--module_name=debug" "--module_path=/usr/npm-global/lib/node_modules/v8-debug/build/debug/v0.7.3/node-v47-linux-ia32"
gyp ERR! cwd /usr/npm-global/lib/node_modules/v8-debug
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/node-v5.6.0-linux-x86/bin/node /usr/node-v5.6.0-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/npm-global/lib/node_modules/v8-debug/build/debug/v0.7.3/node-v47-linux-ia32/debug.node --module_name=debug --module_path=/usr/npm-global/lib/node_modules/v8-debug/build/debug/v0.7.3/node-v47-linux-ia32' (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/npm-global/lib/node_modules/v8-debug/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:100:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:185:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:827:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 3.19.0-25-generic
node-pre-gyp ERR! command "/usr/node-v5.6.0-linux-x86/bin/node" "/usr/npm-global/lib/node_modules/v8-debug/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/npm-global/lib/node_modules/v8-debug
node-pre-gyp ERR! node -v v5.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.27
node-pre-gyp ERR! not ok
Failed to execute '/usr/node-v5.6.0-linux-x86/bin/node /usr/node-v5.6.0-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/npm-global/lib/node_modules/v8-debug/build/debug/v0.7.3/node-v47-linux-ia32/debug.node --module_name=debug --module_path=/usr/npm-global/lib/node_modules/v8-debug/build/debug/v0.7.3/node-v47-linux-ia32' (1)
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/node-v5.6.0-linux-x86/bin/node" "/usr/node-v5.6.0-linux-x86/bin/npm" "install" "v8-debug" "-g"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
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-pre-gyp install --fallback-to-build
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! /usr/npm-global/lib/node_modules/node-inspector/npm-debug.log
root@ubuntu:/usr/npm-global/lib/node_modules/node-inspector# node-inspector
Node Inspector v0.12.8
Visit http://127.0.0.1:8080/?port=5858 to start debugging.

@dimircin
Copy link

dimircin commented May 7, 2016

i have the same issue. Any ideas to fix?

@3y3
Copy link
Member

3y3 commented May 8, 2016

Hm. I see that you use ia32 linux architecture. Unfortunately we don't have prebuilt binaries for ia32 on linux. In this situation node-gyp tries to compile binary for you.
Maybe you don't have required dependencies for build. For linux I use gcc v4.7.2

@larrybotha
Copy link

larrybotha commented May 11, 2016

Getting this on Mac OSX 10.8
node-inspector v0.12.6-8
Node 5.10.1

@vijraman
Copy link

Having install issue on Mac OSX 10.9.5
npm ERR! [email protected] preinstall: node -e 'process.exit(0)'
npm ERR! spawn sh ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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.

node -v
v6.1.0
npm --ve
3.8.6

@vinniefm
Copy link

Install issues on OSX 10.11.4

npm ERR! [email protected] preinstall: node -e 'process.exit(0)'
npm ERR! spawn sh ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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.

node -v
6.0.0
npm -v
3.8.6

@alanmimms
Copy link

Same on Ubuntu 16.04 using node v6.1.0 installed via nvm if it isn't obvious from the below (it is).

$ npm install -g node-inspector

> [email protected] preinstall /home/alan/.nvm/versions/node/v6.1.0/lib/node_modules/.staging/v8-profiler-7890d715
> npm install node-pre-gyp

/home/alan/.nvm/versions/node/v6.1.0/bin/node-pre-gyp -> /home/alan/.nvm/versions/node/v6.1.0/lib/node_modules/node-pre-gyp/bin/node-pre-gyp
/home/alan/.nvm/versions/node/v6.1.0/lib
└── [email protected] 


> [email protected] preinstall /home/alan/.nvm/versions/node/v6.1.0/lib/node_modules/.staging/v8-debug-b0ae679d
> node -e 'process.exit(0)'

/home/alan/.nvm/versions/node/v6.1.0/lib
└── (empty)

npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/home/alan/.nvm/versions/node/v6.1.0/bin/node" "/home/alan/.nvm/versions/node/v6.1.0/bin/npm" "install" "-g" "node-inspector"
npm ERR! node v6.1.0
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! [email protected] preinstall: `node -e 'process.exit(0)'`
npm ERR! spawn sh ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] 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/alan/longhorn/npm-debug.log
npm ERR! code 1

@goldnmean
Copy link

Install issues on OSX 10.11.3
node -v 6.1.0
npm -v 3.8.6

npm ERR! [email protected] preinstall: `node -e 'process.exit(0)'`
npm ERR! spawn sh ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script 'node -e 'process.exit(0)''.

@awolski
Copy link

awolski commented May 12, 2016

Getting the same issue since 0.7.7. Error occurs installing node-inspector which uses

"v8-debug": "~0.7.1",

Environment is centos:6.6 (docker image):

> [email protected] preinstall /usr/local/lib/node_modules/node-inspector/node_modules/v8-profiler
> npm install node-pre-gyp
npm ERR! Linux 3.19.0-30-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-pre-gyp"
npm ERR! node v0.12.13
npm ERR! npm  v2.15.0
npm ERR! path /root/.npm/node-pre-gyp
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, mkdir '/root/.npm/node-pre-gyp'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES, mkdir '/root/.npm/node-pre-gyp'] errno: -13, code: 'EACCES', path: '/root/.npm/node-pre-gyp' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR!     /usr/local/lib/node_modules/node-inspector/node_modules/v8-profiler/npm-debug.log
> [email protected] preinstall /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug
> node -e 'process.exit(0)'
> [email protected] install /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build
[v8-debug] Success: "/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v14-linux-x64/debug.node" is installed via remote
npm ERR! Linux 3.19.0-30-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "node-inspector" "rtail"
npm ERR! node v0.12.13
npm ERR! npm  v2.15.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: `npm install node-pre-gyp`
npm ERR! Exit status 243
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'npm install node-pre-gyp'.
npm ERR! This is most likely a problem with the v8-profiler package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm install node-pre-gyp
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs v8-profiler
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls v8-profiler
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/npm-debug.log

@smanos
Copy link

smanos commented May 21, 2016

Getting it too on:

npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build


`
> [email protected] preinstall /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug
> node -e 'process.exit(0)'

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied

> [email protected] preinstall /usr/local/lib/node_modules/node-inspector/node_modules/v8-profiler
> node -e 'process.exit(0)'

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
-
> [email protected] install /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: node-pre-gyp: command not found

> [email protected] install /usr/local/lib/node_modules/node-inspector/node_modules/v8-profiler
> node-pre-gyp install --fallback-to-build

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: node-pre-gyp: command not found
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "node-inspector"
npm ERR! node v4.4.4
npm ERR! npm  v2.15.1
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! 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-pre-gyp install --fallback-to-build
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 ERR!     npm owner ls v8-debug
npm ERR! There is likely additional logging output above.

@ghost
Copy link

ghost commented Jul 8, 2016

Got the same issue, here's the output.

npm ERR! node v4.4.7
npm ERR! npm  v3.10.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
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-pre-gyp install --fallback-to-build
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.
#

@bhoomit
Copy link

bhoomit commented Jul 19, 2016

did anyone find any solution to this?

@sorenlouv
Copy link

sorenlouv commented Jul 24, 2016

Possible related to #31

I've created a repo to make it easier for the maintainers to reproduce the issue I'm seeing: https://github.com/sqren/v8-debug-debug

Update (September, 2016)
My solution was to move away from node-inspector, and start using the native debugger made available since Node 6.3:

node --inspect index.js

@mcnelson
Copy link

Same problem on Fedora 24.

@ulrichnzuzi
Copy link

see russfrisch solution at #7

@csvan
Copy link

csvan commented Nov 6, 2016

Reproducible on Windows 7 Enterprise

@tandat2209
Copy link

Same problem on MAC OS 10.11.4
node v7.0.0
npm 3.10.8

@r3dcrosse
Copy link

r3dcrosse commented Nov 18, 2016

Same problem on MAC OS 10.11.6
node v7.0.0
npm v4.0.2

Went back to node v.6.9.1 and then it worked!

@MPX4132
Copy link

MPX4132 commented Nov 29, 2016

Same on macOS 10.12.1.
node v7.2.0 & v6.9.1.
npm v4.0.3 & the one bundled with node v6.9.1.

@yunghoy
Copy link

yunghoy commented Dec 21, 2016

  • working correctly with Node 6.x version

npm ERR! node v7.3.0
npm ERR! npm v3.10.10

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
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-pre-gyp install --fallback-to-build
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! /app/be/npm-debug.log
The command '/bin/sh -c npm install /app/be/' returned a non-zero code: 1
error with docker

@pratyush247
Copy link

Any solution yet ?

@stenio123
Copy link

Looks like node-inspector doesnt work with latest node versions, per node-inspector/node-inspector#907

However you might not need it, similar functionality is now built into node. Just use node --inspect yourApp.js and follow similar workflow.

@matthewepler
Copy link

matthewepler commented Jan 18, 2017

Works with Node v6.9.4. If you've never installed another version of Node alongside your existing one, I recommend using nvm. Here's a good quick intro.

UPDATE:
Seems there are issues with node-inspector and any version of Node >= 6.4.x. See this thread.

I had to use v6.3.1 for it to work correctly. (macOS Sierra)

@jwnx
Copy link

jwnx commented Jan 23, 2017

@matthewepler Thank you very much, 6.3.1 works like a charm. Was using 7.4.0.

@waltonryan
Copy link

waltonryan commented Feb 1, 2017

@matthewepler Thanks, I was able to use node v6.5.0 with our heroku build process.

// package.json
...
  "engines": {
    "node": "~6.5.0",
    "npm": "3.10.7"
  },
...

See here #7.

@Shane-Walsh
Copy link

Delete "grunt-node-inspector" from package.json

Heroku does not like grunt-node-inspector with node v7.1.0

@khaledalyawad
Copy link

try npm rebuild node-sass

@hoogw
Copy link

hoogw commented Apr 11, 2018

I have same issue with node -v 9.6

I solve my problem by install nvm-windows to use node 5.6.0,

node after 6.3 will conflict with grunt-node-inspector, because node after 6.3 will have its own debugger.

So you have to use node <6, v5.6.0 is good enough

nvm-windows let you run multiple node version at same time, I use it to go back v5.6.0

@yuukiii
Copy link

yuukiii commented Apr 21, 2018

I solved it by using node 6.11

@ruzpuz
Copy link

ruzpuz commented Jun 4, 2018

Guys is there a workaround to not downgrade to node <= 10?

@migueloop
Copy link

migueloop commented Jun 24, 2018

I just updated node inspector to the last version to dix my issue. You can do this or downgrade node to v.6

@ranupoju0126
Copy link

image

I got this error message while running grunt serve, after upgrading nodev6 to nodev8

then, I replace the string debug with inspect in my gruntfile.js, then it worked like charm.

NodeV8 simply says to use -inspect instead of debug

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests