-1

当我尝试安装节点检查器时,会发生一些问题。但它也创建了一个名为 node-inspector 的文件。!当我尝试使用 node-inspector 时,它显示“调试器正在侦听端口 5858”,但没有显示“成功!” .就像第三张图一样!我不知道如何处理这个问题!以下是资料:

> ws@0.4.32 install C:\Users\DELL\AppData\Roaming\npm\node_modules\node-inspector\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! ws@0.4.32 install: `(node-gyp rebuild 2> builderror.log) || (exit 0)`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ws@0.4.32 install script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! You can get their info via:
npm ERR!     npm owner ls ws
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod    ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-inspector" "-g"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! not ok code 0

C:\Program Files\nodejs>^A

C:\Program Files\nodejs>cd\

C:\>node --debug-brk=5858 getmodule.js
debugger listening on port 5858
4

1 回答 1

0

确保您已安装和配置编译器工具:

  • Python(推荐 v2.7.3,不支持 v3.xx)
  • Microsoft Visual Studio C++ 2012 for Windows Desktop(Express 版本也可以)

有关更多详细信息,请参见例如这些说明

于 2014-10-13T11:51:15.327 回答