-
Notifications
You must be signed in to change notification settings - Fork 719
Open

Description
#Got some trouble on installing node-inspector
node -v && npm -v
v8.1.3
5.0.3
gyp ERR! cwd /usr/local/lib/node_modules/node-inspector/node_modules/v8-profiler
gyp ERR! node -v v8.1.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-profiler@5.7.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-profiler@5.7.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Djamal/.npm/_logs/2017-07-06T21_14_29_065Z-debug.log
Activity
zhijunzhou commentedon Jul 12, 2017
os: windows 10
I've got the same error after upgrade node to v8.1.3. And the details like that:
ghost commentedon Jul 12, 2017
[SOLVED]
You should definitely download and install the current version which is recommended for most users (6.11.1 LTS)
It worked for me, I really think the 8th version is too recent for node-inspector
mrhammadasif commentedon Jul 14, 2017
I am also using v8.1.4 & getting this error
`> v8-profiler@5.7.0 preinstall /usr/local/lib/node_modules/node-inspector/node_modules/v8-profiler
/usr/local/bin/node-debug -> /usr/local/lib/node_modules/node-inspector/bin/node-debug.js
/usr/local/bin/node-inspector -> /usr/local/lib/node_modules/node-inspector/bin/inspector.js
node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@1.0.1 and node@8.1.3 (node-v57 ABI) (falling back to source compile with node-gyp)
CXX(target) Release/obj.target/debug/src/debug.o
../src/debug.cc:41:20: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
v8::Debug::Call(context, fn);
^
/Users/hammadasif/.node-gyp/8.1.3/include/node/v8-debug.h:193:42: note:
'Call' has been explicitly marked deprecated here
static MaybeLocal Call(
^
../src/debug.cc:52:45: warning: 'GetDebugContext' is deprecated
[-Wdeprecated-declarations]
Isolate* debug_isolate = v8::Debug::GetDebugContext(Isolate::G...
^
/Users/hammadasif/.node-gyp/8.1.3/include/node/v8-debug.h:209:39: note:
'GetDebugContext' has been explicitly marked deprecated here
static Local GetDebugContext(Isolate* isolate));
^
../src/debug.cc:57:20: warning: 'SendCommand' is deprecated
[-Wdeprecated-declarations]
v8::Debug::SendCommand(debug_isolate, command, command.length());
^
/Users/hammadasif/.node-gyp/8.1.3/include/node/v8-debug.h:170:29: note:
'SendCommand' has been explicitly marked deprecated here
static void SendCommand(Isolate isolate,
^
../src/debug.cc:71:51: warning: 'GetDebugContext' is deprecated
[-Wdeprecated-declarations]
Local debug_context = v8::Debug::GetDebugContext(Isol...
^
/Users/hammadasif/.node-gyp/8.1.3/include/node/v8-debug.h:209:39: note:
'GetDebugContext' has been explicitly marked deprecated here
static Local GetDebugContext(Isolate* isolate));
^
../src/debug.cc:78:22: error: no member named 'GetMirror' in 'v8::Debug'
v8::Debug::GetMirror(info.GetIsolate()->GetCurrentContext()...
~~~~~~~~~~~^
../src/debug.cc:80:38: warning: 'GetDebugContext' is deprecated
[-Wdeprecated-declarations]
debug_context = v8::Debug::GetDebugContext(Isolate::GetCurrent());
^
/Users/hammadasif/.node-gyp/8.1.3/include/node/v8-debug.h:209:39: note:
'GetDebugContext' has been explicitly marked deprecated here
static Local GetDebugContext(Isolate* isolate));
^
5 warnings and 1 error generated.
make: *** [Release/obj.target/debug/src/debug.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Darwin 16.6.0
gyp ERR! command "/usr/local/Cellar/node/8.1.3/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v57-darwin-x64/debug.node" "--module_name=debug" "--module_path=/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v57-darwin-x64"
gyp ERR! cwd /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug
gyp ERR! node -v v8.1.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/8.1.3/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v57-darwin-x64/debug.node --module_name=debug --module_path=/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v57-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/node-inspector/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:897:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
node-pre-gyp ERR! System Darwin 16.6.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/8.1.3/bin/node" "/usr/local/lib/node_modules/node-inspector/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug
node-pre-gyp ERR! node -v v8.1.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/Cellar/node/8.1.3/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v57-darwin-x64/debug.node --module_name=debug --module_path=/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v57-darwin-x64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-debug@1.0.1 install:
node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug@1.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`
tpae commentedon Jul 21, 2017
@mrhammadasif I was having the same issue and I found this: #1010
node-inspector doesn't work in node 8.x, that's why downgrade is the only solution.
According to #1010 (comment) , we should use built-in debugger tools instead. https://nodejs.org/en/docs/inspector/
Hope it helps
[-]node-inspector installation (Error)[/-][+]node-inspector installation error (Solved)[/+]frank198 commentedon Sep 21, 2017
root@frank ~# npm i -g node-inspector --registry=https://registry.npm.taobao.org
npm ERR! Cannot read property 'pause' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-09-20T10_16_24_176Z-debug.log
4830 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "node-inspector" "--registry=https://registry.npm.taobao.org"
4831 verbose node v8.5.0
4832 verbose npm v5.4.2
4833 error Cannot read property 'pause' of undefined
4834 verbose exit [ 1, true ]
yeongjet commentedon Sep 25, 2017
I got the same error, hope it solved in official way.
YouShengBS commentedon Dec 7, 2017
What the fuck???
Before solving this most fundamental problem, how many issues should we submit?
Developers mental retardation yet?
mwcz commentedon Jan 9, 2018
I think @YouShengBS is volunteering to fix this. π
dongalor commentedon Feb 14, 2018