node-inspector: [[[ INSTALL ISSUES ]]] 404 node-pre-gyp ERR! Pre-built binaries not found for v8-debug stack Error: Failed to execute
Potential duplicate of #868
node --version
v7.2.1
npm --version
3.10.9
New MacBook delivered yesterday.
First error I’m getting:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
So I tried following the instructions here: https://github.com/nodejs/node-gyp/issues/569#issuecomment-255589932
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Output from the console:
npm install -g node-inspector
> v8-debug@0.7.7 preinstall /usr/local/lib/node_modules/.staging/v8-debug-5be573b2
> node -e 'process.exit(0)'
> v8-profiler@5.6.5 preinstall /usr/local/lib/node_modules/.staging/v8-profiler-4971d27a
> node -e 'process.exit(0)'
/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
> v8-debug@0.7.7 install /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@7.2.1 (node-v51 ABI) (falling back to source compile with node-gyp)
CXX(target) Release/obj.target/debug/src/debug.o
../src/debug.cc:38:27: error: too few arguments to function call, expected at least 2, have 1
v8::Debug::Call(fn);
~~~~~~~~~~~~~~~ ^
/Users/ms/.node-gyp/7.2.1/include/node/v8-debug.h:198:3: note: 'Call' declared here
static MaybeLocal<Value> Call(Local<Context> context,
^
../src/debug.cc:46:61: error: too few arguments to function call, single argument 'isolate' was not
specified
Isolate* debug_isolate = v8::Debug::GetDebugContext()->GetIsolate();
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/ms/.node-gyp/7.2.1/include/node/v8-debug.h:248:3: note: 'GetDebugContext' declared here
static Local<Context> GetDebugContext(Isolate* isolate);
^
../src/debug.cc:61:67: error: too few arguments to function call, single argument 'isolate' was not
specified
Local<Context> debug_context = v8::Debug::GetDebugContext();
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/ms/.node-gyp/7.2.1/include/node/v8-debug.h:248:3: note: 'GetDebugContext' declared here
static Local<Context> GetDebugContext(Isolate* isolate);
^
../src/debug.cc:66:54: error: too few arguments to function call, single argument 'isolate' was not
specified
debug_context = v8::Debug::GetDebugContext();
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/ms/.node-gyp/7.2.1/include/node/v8-debug.h:248:3: note: 'GetDebugContext' declared here
static Local<Context> GetDebugContext(Isolate* isolate);
^
4 errors generated.
make: *** [Release/obj.target/debug/src/debug.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.0.0
gyp ERR! command "/usr/local/Cellar/node/7.2.1/bin/node" "/usr/local/lib/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/v0.7.7/node-v51-darwin-x64/debug.node" "--module_name=debug" "--module_path=/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v51-darwin-x64"
gyp ERR! cwd /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug
gyp ERR! node -v v7.2.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/7.2.1/bin/node /usr/local/lib/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/v0.7.7/node-v51-darwin-x64/debug.node --module_name=debug --module_path=/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v51-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/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:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:885:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Darwin 16.0.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/7.2.1/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 v7.2.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/Cellar/node/7.2.1/bin/node /usr/local/lib/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/v0.7.7/node-v51-darwin-x64/debug.node --module_name=debug --module_path=/usr/local/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v51-darwin-x64' (1)
/usr/local/lib
└── (empty)
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/Cellar/node/7.2.1/bin/node" "/usr/local/bin/npm" "install" "-g" "node-inspector"
npm ERR! node v7.2.1
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! v8-debug@0.7.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug@0.7.7 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! /Users/ms/Dropbox/Musafa/dev/tarot/npm-debug.log
npm ERR! code 1
About this issue
- Original URL
- State: open
- Created 8 years ago
- Reactions: 54
- Comments: 48
Seeing the same thing, and just as a warning,
Never do what @bbbenji suggests. Never modify the permissions of root folders. Never sudo install with package managers (npm or otherwise). And never install
-g
for project-specific dependencies.This is what “fixed” it for me, but I don’t know how much of it was required
Remove the existing node-gyp folder from this comment
Update npm (why not?)
Remove existing
node_modules/
Remove the existing
package-json.lock
(oryarn.lock
if using yarn) from this comment. An older version of fsevent in the lockfile could be causing this errorAnd then reinstalling
I solved this by
just install it manually!
I fixed this issue by doing the following
I think it should be
From official link : Since version 6.3, Node.js provides a buit-in DevTools-based debugger which mostly deprecates Node Inspector, The built-in debugger is developed directly by the V8/Chromium team and provides certain advanced features (e.g. long/async stack traces) that are too difficult to implement in Node Inspector.
see below link to get started. https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27
Same env as @AlexPoirier1
npm – version 4.2.0 node --version v7.4.0
Reverted back to node v6.9.5 and the install worked.
I came across the same error. I tried this to fix it. —npm install fsevents —npm audit fix
Same error: node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v51-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@7.3.0 (node-v51 ABI) (falling back to source compile with node-gyp)
I try and OK: npm install -g node-inspector@0.7.5
I’m having the same issue
but just updating npm
& re-running yarn command it works fine … now
FYI
Looks like this project is not maintained anymore.
this solved my problem: $ npm install fsevents
The same thing happened to me too. (failed with both of the following versions)
@bbbenji seemed to work but when trying to run node-debug
my-file.js
I getsame error here :
node v7.2.1 npm v4.0.5 node-gyp v3.4.0 node-pre-gyp v0.6.32
use yarn!!!
installing “latest” node-inspector didn’t cut it for me. I had to install the 0.7.5 version, as mentioned in above comments, to move on:
npm install -g node-inspector@0.7.5
same here:
I tried to execute with and without super user access on a OS X 10.11.6
I also noticed that the first two errors are:
So it tries to download binaries and, not founding the binaries tries to compile those and fails.
Does anyone have any workaround or temporal fix for that?
Thanks!
I updated my npm version and since I have the 404 and 403 errors on node-pre-gyp which seems to be part of grpc which in turn I was using for my firebase project what I did was the following:
After that, I was able to finally run my project as always.
In my case it seems that the firestore package was drastically updated including its dependencies
I hope it helps someone else.
We had the same issue. To solve it, we upgraded the version of Node.
This is my baby now:
node --inspect-brk
( chrome:inspect --> Open dedicated DevTools for Node )
npm --version v4.2.0 node --version v6.9.5
stil the same issue. This time when installing bcrypt. It seems github release download URL changed from : https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v48-darwin-x64.tar.gz to https://github.com/kelektiv/node.bcrypt.js/archive/v1.0.2.tar.gz
Moving from v7.4.0 back to v6.9.5 resolved the issue for me as well.
I’m using
nvm
to manage mynode
versions on macOS, but it wasn’t setup in my shell correctly, so it defaulted to nativenode
version (10.0.0
in this case) and after switching back to9.11.1
I no longer have that error.For me, it was due to the latest
node
version.hi all,
i had the same problems installing node-pre-gyp i managed to install it manually, but with the same error messages after “npm install” in node-red directory
so after checking the error logs i found
gyp WARN EACCES user “root” does not have permission to access the dev dir “/root/.node-gyp/4.2.1”
after sudo su i tried again, with the same github (404) download error, but this time the script started the make sequence without any errors
so my problem was just user permissions after “npm run build” in the node-red dir i can now start node red.js without any problems
hope that helps