2017-10-11 1 views
1

J'ai essayé l'installation sur deux machines Windows 10 différentes, à la fois avec les privilèges d'administrateur et le noeud v8.6.0. + python 3.6.3 amd64. Les deux ont échoué avec les mêmes erreurs:Impossible d'installer l'inspecteur de noeud

C:\Users\kians>npm install -g node-inspector 

> [email protected] preinstall C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-profiler 
> node -e 'process.exit(0)' 


> [email protected] preinstall C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug 
> node -e 'process.exit(0)' 

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

> [email protected] install C:\Users\kians\AppData\Roaming\npm\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/v1.0.1/node-v57-win32-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp) 

C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" clean) else (node "" clean) 

C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-w 
in32-x64\debug.node --module_name=debug --module_path=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64) else (node "" configure --fallback-to-build --module=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64\debug.node --module_name=deb 
ug --module_path=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64) 
gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "C:\Users\kians\AppData\Local\Programs\Python\Python36\python.EXE", you can set the PYTHON env variable. 
gyp ERR! stack  at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19) 
gyp ERR! stack  at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16) 
gyp ERR! stack  at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 
gyp ERR! stack  at FSReqWrap.oncomplete (fs.js:153:21) 
gyp ERR! System Windows_NT 10.0.15063 
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\\kians\\AppData\\Roaming\\npm\\node_modules\\node-inspector\\node_modules\\v8-debug\\build\\debug\\v1.0.1\\node-v57-win32-x64\\debug.node" "--module_name=debug" "--module_path=C:\\Users\ 
\kians\\AppData\\Roaming\\npm\\node_modules\\node-inspector\\node_modules\\v8-debug\\build\\debug\\v1.0.1\\node-v57-win32-x64" 
gyp ERR! cwd C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug 
gyp ERR! node -v v8.6.0 
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 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64\debug.node --module_name=debug --module_path=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-w 
in32-x64' (1) 
node-pre-gyp ERR! stack  at ChildProcess.<anonymous> (C:\Users\kians\AppData\Roaming\npm\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:927:16) 
node-pre-gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 
node-pre-gyp ERR! System Windows_NT 10.0.15063 
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\kians\\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\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug 
node-pre-gyp ERR! node -v v8.6.0 
node-pre-gyp ERR! node-pre-gyp -v v0.6.38 
node-pre-gyp ERR! not ok 
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64\debug.node --module_name=debug --module_path=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64' (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\kians\AppData\Roaming\npm-cache\_logs\2017-10-11T17_39_49_176Z-debug.log 

D'abord, je croyais que les fichiers de aws ne sont pas disponibles, mais à la première étape, un grand nombre de fichiers sont extraits, donc je ne pense pas que le téléchargement a échoué est le problème.

J'ai également pu ouvrir: C: \ Users \ kians \ AppData \ Local \ Programs \ Python \ Python36 \ python.exe

EDIT: J'exécutez la commande suivante:

npm install --global --production windows-build-tools 

maintenant, l'erreur est différente:

C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug>if not defined npm_config_node_gyp (node "C:\Program File 
s\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" clean) else (node "" clean) 

C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug>if not defined npm_config_node_gyp (node "C:\Program File 
s\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\Users\kians 
\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64\debug.node --module_name=debug -- 
module_path=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64 --pytho 
n=C:\Users\kians\.windows-build-tools\python27\python.exe --msvs_version=2015) else (node "" configure --fallback-to-build --module=C:\Users 
\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64\debug.node --module_name=de 
bug --module_path=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64 - 
-python=C:\Users\kians\.windows-build-tools\python27\python.exe --msvs_version=2015) 

C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug>if not defined npm_config_node_gyp (node "C:\Program File 
s\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" build --fallback-to-build --module=C:\Users\kians\App 
Data\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64\debug.node --module_name=debug --modu 
le_path=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64) else (no 
de "" build --fallback-to-build --module=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0 
.1\node-v57-win32-x64\debug.node --module_name=debug --module_path=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules 
\v8-debug\build\debug\v1.0.1\node-v57-win32-x64) 
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hi 
nzufügen. 
    debug.cc 
    InjectedScriptHost.cc 
    win_delay_load_hook.cc 
..\src\debug.cc(41): warning C4996: 'v8::Debug::Call': was declared deprecated [C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspecto 
r\node_modules\v8-debug\build\debug.vcxproj] 
    C:\Users\kians\.node-gyp\8.6.0\include\node\v8-debug.h(195): note: see declaration of 'v8::Debug::Call' 
..\src\debug.cc(52): warning C4996: 'v8::Debug::GetDebugContext': was declared deprecated [C:\Users\kians\AppData\Roaming\npm\node_modules\no 
de-inspector\node_modules\v8-debug\build\debug.vcxproj] 
    C:\Users\kians\.node-gyp\8.6.0\include\node\v8-debug.h(209): note: see declaration of 'v8::Debug::GetDebugContext' 
..\src\debug.cc(57): warning C4996: 'v8::Debug::SendCommand': was declared deprecated [C:\Users\kians\AppData\Roaming\npm\node_modules\node-i 
nspector\node_modules\v8-debug\build\debug.vcxproj] 
    C:\Users\kians\.node-gyp\8.6.0\include\node\v8-debug.h(172): note: see declaration of 'v8::Debug::SendCommand' 
..\src\debug.cc(78): error C2039: 'GetMirror': is not a member of 'v8::Debug' [C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector 
\node_modules\v8-debug\build\debug.vcxproj] 
    C:\Users\kians\.node-gyp\8.6.0\include\node\v8-debug.h(26): note: see declaration of 'v8::Debug' 
..\src\debug.cc(78): error C3861: 'GetMirror': identifier not found [C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modu 
les\v8-debug\build\debug.vcxproj] 
..\src\debug.cc(71): warning C4996: 'v8::Debug::GetDebugContext': was declared deprecated [C:\Users\kians\AppData\Roaming\npm\node_modules\no 
de-inspector\node_modules\v8-debug\build\debug.vcxproj] 
    C:\Users\kians\.node-gyp\8.6.0\include\node\v8-debug.h(209): note: see declaration of 'v8::Debug::GetDebugContext' 
..\src\debug.cc(80): warning C4996: 'v8::Debug::GetDebugContext': was declared deprecated [C:\Users\kians\AppData\Roaming\npm\node_modules\no 
de-inspector\node_modules\v8-debug\build\debug.vcxproj] 
    C:\Users\kians\.node-gyp\8.6.0\include\node\v8-debug.h(209): note: see declaration of 'v8::Debug::GetDebugContext' 
gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onExit (C:\Program Files\nodejs\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:200:12) 
gyp ERR! System Windows_NT 10.0.15063 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js 
" "build" "--fallback-to-build" "--module=C:\\Users\\kians\\AppData\\Roaming\\npm\\node_modules\\node-inspector\\node_modules\\v8-debug\\build 
\\debug\\v1.0.1\\node-v57-win32-x64\\debug.node" "--module_name=debug" "--module_path=C:\\Users\\kians\\AppData\\Roaming\\npm\\node_modules\\n 
ode-inspector\\node_modules\\v8-debug\\build\\debug\\v1.0.1\\node-v57-win32-x64" 
gyp ERR! cwd C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug 
gyp ERR! node -v v8.6.0 
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 'node-gyp.cmd build --fallback-to-build --module=C:\Users\kians\AppData\Roaming\npm\node_modu 
les\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64\debug.node --module_name=debug --module_path=C:\Users\kians\App 
Data\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64' (1) 
node-pre-gyp ERR! stack  at ChildProcess.<anonymous> (C:\Users\kians\AppData\Roaming\npm\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:927:16) 
node-pre-gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 
node-pre-gyp ERR! System Windows_NT 10.0.15063 
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\kians\\AppData\\Roaming\\npm\\node_modules\\node-inspector\\node_m 
odules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" 
node-pre-gyp ERR! cwd C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-debug 
node-pre-gyp ERR! node -v v8.6.0 
node-pre-gyp ERR! node-pre-gyp -v v0.6.38 
node-pre-gyp ERR! not ok 
Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules 
\v8-debug\build\debug\v1.0.1\node-v57-win32-x64\debug.node --module_name=debug --module_path=C:\Users\kians\AppData\Roaming\npm\node_modules\n 
ode-inspector\node_modules\v8-debug\build\debug\v1.0.1\node-v57-win32-x64' (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\kians\AppData\Roaming\npm-cache\_logs\2017-10-11T18_45_47_242Z-debug.log 
+0

Est-il toujours logique d'utiliser 'node-inspector' pour Node.js 8? Lisez ceci: https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27 – robertklep

+0

Wow! Merci! Je ne connaissais pas celui-ci et l'utiliserai maintenant. Voudriez-vous poster ceci comme réponse, afin que je puisse le marquer et que vous serez récompensé par des points? – Binary

Répondre

0

pour commencer cette erreur semble être lié avec le paquet node-gyp. Selon leur documentation page dans github il y a 2 options de configuration pour Windows.

Option 1 est de fonctionner:

npm install --global --production windows-build-tool 

que vous avez déjà fait, mais dans mon expérience n'a pas fonctionné pour moi aussi.

Essayez l'option 2 ainsi:

1: Install Visual C++ Build Tools using the Default Install option. 

2: Install Visual Studio 2015 (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions. 

3. Install Python 2.7 (v3.x.x is not supported), and run npm config set python python2.7 (or see below for further instructions on specifying the proper Python version and path.) 

4. Launch cmd, npm config set msvs_version 2015 
+0

Merci. J'ai couru npm install --global --production windows-build-tool déjà. S'il vous plaît voir le milieu de mon message. La première erreur a disparu mais j'ai de nouvelles erreurs. – Binary

+0

@Binary Oui, j'ai remarqué - c'est pourquoi j'ai dit "ce que vous avez déjà fait". Mais essayez la 2ème option car la 1ère option n'a pas fonctionné pour moi aussi bien que la 2ème option. –