无法安装节点检查器
我试着在两台不同的Windows 10机器上进行安装,这两台机器都具有pipe理权限和节点v8.6.0。 + python 3.6.3 amd64。 两个失败都有相同的错误:
C:\Users\kians>npm install -g node-inspector > v8-profiler@5.7.0 preinstall C:\Users\kians\AppData\Roaming\npm\node_modules\node-inspector\node_modules\v8-profiler > node -e 'process.exit(0)' > v8-debug@1.0.1 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 > v8-debug@1.0.1 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 v8-debug@1.0.1 and node@8.6.0 (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! 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. 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
首先,我认为aws的文件不可用,但是在第一步中,很多文件正在被提取,所以我不认为下载失败是个问题。
我也可以打开:C:\ Users \ kians \ AppData \ Local \ Programs \ Python \ Python36 \ python.EXE
编辑:我运行以下命令:
npm install --global --production windows-build-tools
现在的错误是不同的:
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! 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. 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
开始这个错误似乎与node-gyp
包有关。 根据他们在github中的文档页面 ,Windows有两个设置选项。
选项1是运行:
npm install --global --production windows-build-tool
你已经做了,但是根据我的经验,对我来说也不是。
尝试选项2以及:
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.xx 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
根据线程https://github.com/node-inspector/node-inspector/issues/1010#issuecomment-306972510 ,节点检查器不工作节点8.X.
您可以使用内置的debugging器工具。 https://nodejs.org/en/docs/inspector/
- Node-Inspector无法打开Chrome浏览器抛出错误ENOENT
- 如何debugging与Mocha运行的Eclipse中的Javascriptunit testing?
- node.js的debugging模块:如何避免这种繁琐的初始化?
- 节点检查器不适用于节点6.0.0
- 如何将parameter passing给nodemon(或node-supervisor)中的可执行文件?
- 如何使用docker-compose.debug.yml来debugging在docker中运行的节点?
- Eclipse node.js项目不会停在断点上
- closures时使用require时,不能在函数内部设置断点
- nodeunittesting和trace.gl