我在win7中安装node-inspector时遇到的问题

时间:2014-10-12 14:32:47

标签: node.js install node-inspector

当我尝试安装node-inspector时,会出现一些问题。但是它还创建了一个名为node-inspector的文件。!当我尝试使用node-inspector时,它显示"调试器正在侦听端口5858"并且没有show" suceess!"就像第三张照片!我不知道如何处理这个问题! 以下是信息:

> 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

1 个答案:

答案 0 :(得分:0)

确保安装并配置了编译工具:

  • Python(建议使用v2.7.3,不支持v3.x.x)
  • 适用于Windows桌面的Microsoft Visual Studio C ++ 2012(Express版也适用)

参见例如这些instructions了解更多详情。