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

node-pre-gyp install --fallback-to-build #7

Open
sparxHub opened this issue Dec 25, 2014 · 75 comments
Open

node-pre-gyp install --fallback-to-build #7

sparxHub opened this issue Dec 25, 2014 · 75 comments

Comments

@sparxHub
Copy link

I am getting below error while installing v8-debug, any ideas?

1035 info install [email protected]
1036 verbose unsafe-perm in lifecycle true
1037 info [email protected] Failed to exec install script
1038 verbose unlock done using C:\Users\Nadav\AppData\Roaming\npm-cache_locks\v8-debug-6a84c2f0ebeb5635.lock for C:\Program Files\nodejs\node_modules\v8-debug
1039 verbose stack Error: [email protected] install: node-pre-gyp install --fallback-to-build
1039 verbose stack Exit status 1
1039 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:212:16)
1039 verbose stack at EventEmitter.emit (events.js:98:17)
1039 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:14:12)
1039 verbose stack at ChildProcess.emit (events.js:98:17)
1039 verbose stack at maybeClose (child_process.js:766:16)
1039 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:833:5)
1040 verbose pkgid [email protected]
1041 verbose cwd C:\Program Files\nodejs
1042 error Windows_NT 6.2.9200
1043 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "v8-debug"
1044 error node v0.10.34
1045 error npm v2.1.16
1046 error code ELIFECYCLE
1047 error [email protected] install: node-pre-gyp install --fallback-to-build
1047 error Exit status 1
1048 error Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
1048 error This is most likely a problem with the v8-debug package,
1048 error not with npm itself.
1048 error Tell the author that this fails on your system:
1048 error node-pre-gyp install --fallback-to-build
1048 error You can get their info via:
1048 error npm owner ls v8-debug
1048 error There is likely additional logging output above.
1049 verbose exit [ 1, true ]
1050 verbose unbuild node_modules\v8-debug

@3y3
Copy link
Member

3y3 commented Dec 25, 2014

How about this issue? Is this helpful for you?

@sparxHub
Copy link
Author

Didn't solve my problem.

I saw node-gyp required VS2012, so I installed it and set the npm's config related, but still it doesn't work.

Do you think there is any relation to npm's version 2.1.16?

@sparxHub
Copy link
Author

I re-install nodejs and python to 32-bit version, and now it works. It seems like there some issues regarding 64-bit

@ericchaves
Copy link

I'm facing the same trouble. @sparkGitHub could you share the steps you did to solve it?

@3y3
Copy link
Member

3y3 commented Jan 9, 2015

I added some fixes to v8-profiler and v8-debug. Also I added prebuild binaries for Linux and OSX.
Please try to reinstall node-inspector now.

@afreeland
Copy link

I am having this issue as well

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "node-inspector
"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
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 --fal
lback-to-build'.
npm ERR! This is most likely a problem with the v8-debug package,
npm ERR! not with npm itself.

I appear to be having a similar issue...any udpates?

@CoreSoft2
Copy link

Same issue here

pm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "update"
npm ERR! node v0.10.21
npm ERR! npm v2.11.3
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! 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 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:

@p1tt1
Copy link

p1tt1 commented Sep 17, 2015

Same issue here

@lhttjdr
Copy link

lhttjdr commented Sep 19, 2015

Same issue with [email protected]

@pjcliche
Copy link

Same problem, but running on Debian. Here's the actual erroring out leading to the failure message :

CXX(target) Release/obj.target/debug/src/debug.o
In file included from ../src/debug.cc:2:0:
../node_modules/nan/nan.h:261:25: error: redefinition of 'template v8::Local NanEnsureLocal(v8::Local)'
NAN_INLINE v8::Local NanEnsureLocal(v8::Local val) {
^
../node_modules/nan/nan.h:256:25: note: 'template v8::Local NanEnsureLocal(v8::Handle)' previously declared here
NAN_INLINE v8::Local NanEnsureLocal(v8::Handle val) {
^
../node_modules/nan/nan.h:661:13: error: 'node::smalloc' has not been declared
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h:661:35: error: expected ',' or '...' before 'callback'
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(char
, size_t, int)':
../node_modules/nan/nan.h:665:50: error: 'callback' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h:665:60: error: 'hint' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(const char
, uint32_t)':
../node_modules/nan/nan.h:672:67: error: call of overloaded 'New(v8::Isolate
, const char&, uint32_t&)' is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../node_modules/nan/nan.h:672:67: note: candidates are:
In file included from ../node_modules/nan/nan.h:25:0,
from ../src/debug.cc:2:
/root/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
^
/root/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from 'uint32_t {aka unsigned int}' to 'node::encoding'
/root/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, char_, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from 'const char_' to 'char_'
In file included from ../src/debug.cc:2:0:
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(uint32_t)':
../node_modules/nan/nan.h:676:61: error: could not convert 'node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))' from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object'
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../node_modules/nan/nan.h: In function 'v8::Localv8::Object NanBufferUse(char_, uint32_t)':
../node_modules/nan/nan.h:683:12: error: 'Use' is not a member of 'node::Buffer'
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
../src/debug.cc: In static member function 'static void nodex::Debug::InternalConstructorName(const v8::FunctionCallbackInfov8::Value&)':
../src/debug.cc:194:23: warning: deprecated conversion from string constant to 'char_' [-Wwrite-strings]
result_type = "";
^
debug.target.mk:90: recipe for target 'Release/obj.target/debug/src/debug.o' failed
make: *** [Release/obj.target/debug/src/debug.o] Error 1

@wpm
Copy link

wpm commented Sep 21, 2015

I'm seeing the same thing when I try to build the default Yeoman angular-fullstack.

node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --fallback-to-build --module=/Users/williammcneill/Documents/Work/QA/devenv/src/cloudhammer/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64/debug.node --module_name=debug --module_path=/Users/williammcneill/Documents/Work/QA/devenv/src/cloudhammer/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/williammcneill/Documents/Work/QA/devenv/src/cloudhammer/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:817:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 14.5.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/4.1.0/bin/node" "/Users/williammcneill/Documents/Work/QA/devenv/src/cloudhammer/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/williammcneill/Documents/Work/QA/devenv/src/cloudhammer/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug
node-pre-gyp ERR! node -v v4.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.10
node-pre-gyp ERR! not ok 

node-pre-gyp 0.6.10, Node 4.1.0, OS X 10.10.5

@jamescalhoun
Copy link

I also am seeing this issue when I try to run npm install using Yeoman angular-fullstack

Errors start at:

[email protected] install /Users/[edited]/node_modules/node-inspector/node_modules/v8-debug
node-pre-gyp install --fallback-to-build

CXX(target) Release/obj.target/debug/src/debug.o
In file included from ../src/debug.cc:2:
../../../../nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) {

then...

1 warning and 10 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 (/Users/[edited]/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/Users/[edited]/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/[edited]/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64/debug.node" "--module_name=debug" "--module_path=/Users/[edited]/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64"
gyp ERR! cwd /Users/[edited]/node_modules/node-inspector/node_modules/v8-debug
gyp ERR! node -v v4.1.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /Users/[edited]/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/[edited]/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64/debug.node --module_name=debug --module_path=/[edited]/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/[edited]/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:817:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 14.5.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/[edited]/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/[edited]/node_modules/node-inspector/node_modules/v8-debug
node-pre-gyp ERR! node -v v4.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.10
node-pre-gyp ERR! not ok

and end with

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.1.0
npm ERR! npm v3.3.4
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! 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

@3y3
Copy link
Member

3y3 commented Sep 22, 2015

The problem is in grunt-node-inspector, which was linked to outdated node-inspector version.
Can anyone call grunt-node-inspector maintainer to approve on a pr which bumps node-inspector version?

@remydavid
Copy link

Same problem for me, solved by npm install -g grunt-node-inspector, which installs the latest version (0.3.0) which doesn't seems to have the problem.

@hanssl
Copy link

hanssl commented Oct 26, 2015

I am getting the same "Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'." error. I have tried rolling npm back to v2, that did not fix it. I have tried the suggestion above 'npm install -g grunt-node-inspector' but that did not fix the issue.

@3y3
Copy link
Member

3y3 commented Oct 27, 2015

@hanssl ,
grunt-node-inspector already updated and uses correct v8-debug version. Where you found outdated grunt-node-inspector?

Maybe npm cache clean will be helpful for you?

@hanssl
Copy link

hanssl commented Oct 29, 2015

I have tried ‘npm cache clean’ with ‘bower cache clean’ many times. Problem persists.

I have attached my npm log.

On Oct 27, 2015, at 5:33 PM, Yury Puzynya [email protected] wrote:

npm cache clean

@fcagalj
Copy link

fcagalj commented Nov 3, 2015

Does this have any sense: "opened this issue on Dec 25, 2014"????

I leave Windows hoping to avoid this issues, after spending ages on node-gyp nonsenses.

So now I need to spend week to make PR to grunt-node-inspector and hope somebody will accept in order to use it until next bug appear?

@lukeyxu
Copy link

lukeyxu commented Nov 4, 2015

npm ERR! Linux 3.13.0-57-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "grunt-node-inspector"
npm ERR! node v5.0.0
npm ERR! npm v3.3.10
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 their info via:
npm ERR! npm owner ls v8-debug
npm ERR! There is likely additional logging output above.

Same issue here, I'm running ubuntu.

@fcagalj
Copy link

fcagalj commented Nov 4, 2015

Rollback to node 4.2.2 solved problems for me on Ubuntu 14.04.

@yves-s
Copy link

yves-s commented Nov 5, 2015

I was on node 5, rolled back to node 4.2.2 but still the same error. I'm on OSx 10.11.

In my case the issue happens with angular-fullstack as well or rather npm install

Any new insights?

@russfrisch
Copy link

I was experiencing this same issue. Changing in the version for grunt-node-inspector to prepend a ">=" instead of a "~" got this to work for me.

@yves-s
Copy link

yves-s commented Nov 9, 2015

@russfrisch worked for me as well, thx

@marfago
Copy link

marfago commented Nov 10, 2015

@russfrisch worked for me as well on Node 0.12.7. Thank you.

@surprisetalk
Copy link

I encountered the same problem when trying to install meanjs with [email protected] and [email protected]. Going into the package.json (in the cloned meanjs repo) and changing

"grunt-node-inspector": "~0.2.0"

to

"grunt-node-inspector": ">=0.2.0",

did the trick.

Thanks @russfrisch !

@srabeeh
Copy link

srabeeh commented Nov 17, 2015

Thanks @russfrisch

@dam1
Copy link

dam1 commented Nov 23, 2015

You can also update the package.json to

    "grunt-node-inspector": "^0.4.1",

@fabioDMFerreira
Copy link

+1

greben added a commit to greben/mean that referenced this issue Aug 18, 2016
@Ankur-Marwaha
Copy link

Can some one tell me how can i change the globaly installed grunt-node-inspector from this version 3.6.0 to "grunt-node-inspector": ">=0.2.0" ?

@antharamshivakumar
Copy link

can someone help me in removing these errors ?

I tried npm cache clean but it didn't work for me.

Please find the attachment.
capture

@rattrayalex
Copy link

Using node --inspect instead has worked for me as a replacement. Uses node's builtin inspector instead. Node v6.3 or greater.

@antharamshivakumar
Copy link

antharamshivakumar commented Nov 1, 2016

thanks@rattrayalex

i tried to upgrade node gyp using npm install -g node-gyp and it's working for me

@drewpc
Copy link

drewpc commented Nov 16, 2016

Recommend avoiding node-inspector altogether until this is fixed. Here's the cause of v8-debug failing to install:

Unfortunately, I don't have the time/knowledge to update debug.cc and fix this, but hopefully someone else can update that file to match the appropriate headers depending on the version of node.

This also applies to the following open issue: #26, #28, and #30.

@singsai
Copy link

singsai commented Nov 18, 2016

I was finally able to successfully install node-inspector by switching to Node v6.5.0

If you using n https://github.com/tj/n you can do:
sudo n 6.5.0
Then, this should finally work:
npm install -g node-inspector

@dcpartners
Copy link

dcpartners commented Mar 4, 2017

As per @singsai said, downgrade the nodejs to version 6.10.0 and install npm install -g n. We did below instead and run npm install node-inspector works well.

npm install -g n
sudo n 6.10.0
npm install node-inspector

@huazi103
Copy link

gyp support python2.X,not python3. so if you use python3, change to python 2.X, ( 2.X >= 2.5 ), and set the enviroment path for python 2.X

@hatinfotech
Copy link

I was resolved my problem by install package in native console, install via ssh terminal was not wokrked.

@alarv
Copy link

alarv commented Sep 12, 2017

Downgrading node to v6.9.1 worked for me

@shivarajnaidu
Copy link

Any Other Solution ?? I Want to install for Node v8.x

@ashishyadav23
Copy link

thanks @russfrisch +1 its work for me also

@chucklu
Copy link

chucklu commented May 28, 2018

After checking the FAQ of node-pre-gyp, I might need to install the C++ runtime. I am installing it now and give feedback here tomorrow.
Frequently Ask Questions about node-pre-gyp
On Windows for Node C++ modules that do not link external libraries there are no major gotchas. The binaries you build will work well on any Windows system. This is because the default linking for Node is /MT (aka RuntimeLibrary:0) and node-pre-gyp modules inherit this setting by default. So, the C++ runtime will be statically linked into the addon binary and therefore you don't need to worry about your users installing it separately.

However, for Node C++ modules on Windows that depend on external shared libraries, you'll need to understand whether those libraries were linked with /MD or /MT. If the external DLL was linked with /MD then you'll likely need to also link your Node C++ addon using /MD and you'll need to ensure that your users have the right C++ runtime installed for your addon binary to work. For example, if you compiled your binary with Visual Studio 2013 then your users would need This "C++ Redistributable".

@chucklu
Copy link

chucklu commented May 28, 2018

I am not sure why the proxy is invalid, I already configured the proxy as https://stackoverflow.com/questions/40171953/node-npm-proxy-authentication-how-do-i-configure-it. It's just a warning.
And the error is :

Tried to download(undefined): https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v64-win32-x64.tar.gz
 node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)

Anyone knows something about this? @russfrisch

C:\Users\clu\AppData\Roaming\npm\node-inspector -> C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\bin\inspector.js
C:\Users\clu\AppData\Roaming\npm\node-debug -> C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\bin\node-debug.js

[email protected] install C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN download ignoring invalid "proxy" config setting: "sasygsha01prx11_p.asnet.services.net:8080"
node-pre-gyp ERR! Tried to download(undefined): https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: unable to get local issuer certificate
gyp ERR! stack at TLSSocket.onConnectSecure (_tls_wrap.js:1055:34)
gyp ERR! stack at TLSSocket.emit (events.js:182:13)
gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:635:8)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v64-win32-x64\debug.node" "--module_name=debug" "--module_path=C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v64-win32-x64" "--python=C:\Users\clu\.windows-build-tools\python27" "--msvs_version=2015"
gyp ERR! cwd C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug
gyp ERR! node -v v10.2.1
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 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v64-win32-x64\debug.node --module_name=debug --module_path=C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v64-win32-x64 --python=C:\Users\clu.windows-build-tools\python27 --msvs_version=2015' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug
node-pre-gyp ERR! node -v v10.2.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v64-win32-x64\debug.node --module_name=debug --module_path=C:\Users\clu\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v64-win32-x64 --python=C:\Users\clu.windows-build-tools\python27 --msvs_version=2015' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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.
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! C:\Users\clu\AppData\Roaming\npm-cache_logs\2018-05-28T13_47_32_913Z-debug.log

@chucklu
Copy link

chucklu commented May 29, 2018

node-pre-gyp ERR! Tried to download(undefined): https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v64-win32-x64.tar.gz

Someone has submit an issue in node-inspector already
node-inspector/node-inspector#1041

@zhaoyongjiang
Copy link

@antharamshivakumar Is the problem solved? My computer is the macmini。I need your help。thanks a lot

@chucklu
Copy link

chucklu commented Jun 1, 2018

@zhaoyongjiang No, I gave up. And I find the following message for node-inspector

Since version 6.3, Node.js provides a built-in DevTools-based debugger which mostly deprecates Node Inspector, see e.g. this blog post to get started. 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.

I decide to use the built-in debugger in Node.js .

@smdpro
Copy link

smdpro commented Sep 18, 2018

@russfrisch +1 worked for me

@zhaoyongjiang
Copy link

@chucklu thanks a lot

@tommyyama2020
Copy link

anybody encountering the same in the latest ubuntu ? i changed to ">=" as suggested here. But it failed.

@kenliten
Copy link

I'm on OpenSUSE and for me, nothing here is working.

I'm having the same error and the same with Linux mint, anyone knows another way to make it works?

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