【问题标题】:problems when i install node-inspector in win7我在win7中安装节点检查器时出现的问题
【发布时间】:2014-10-12 14:32:47
【问题描述】:

当我尝试安装节点检查器时,会发生一些问题。但它也创建了一个名为 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

【问题讨论】:

    标签: node.js installation node-inspector


    【解决方案1】:

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

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

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

    【讨论】:

    • 我已经安装了Microsoft Visual Studio C++ 2012,但是还是不行,还是和以前一样的错误。
    猜你喜欢
    • 1970-01-01
    • 2016-12-18
    • 2021-11-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-07
    • 2021-01-19
    • 1970-01-01
    • 2021-12-08
    相关资源
    最近更新 更多