安装节点检查器时出现问题



我是node的新手.js我使用"npm install -g node-inspector"来安装节点检查器,但有以下错误:

> ws@0.4.31 install C:UserssamsungAppDataRoamingnpmnode_modulesnode-inspe
ctornode_modulessocket.ionode_modulessocket.io-clientnode_modulesws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

>C:UserssamsungAppDataRoamingnpmnode_modulesnode-inspectornode_modulesso
  cket.ionode_modulessocket.io-clientnode_modulesws>node "D:node_modulesnpm
  binnode-gyp-bin\....node_modulesnode-gypbinnode-gyp.js" rebuild
>MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe".
 If the component is not installed, either 1) install the Microsoft Windows SDK
 for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual
 Studio 2008.  [C:UserssamsungAppDataRoamingnpmnode_modulesnode-inspecto
rnode_modulessocket.ionode_modulessocket.io-clientnode_moduleswsbuildbi
nding.sln]
>MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe".
 If the component is not installed, either 1) install the Microsoft Windows SDK
 for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual
 Studio 2008.  [C:UserssamsungAppDataRoamingnpmnode_modulesnode-inspecto
rnode_modulessocket.ionode_modulessocket.io-clientnode_moduleswsbuildbi
nding.sln]

    >C:UserssamsungAppDataRoamingnpmnode-inspector -> C:UserssamsungAppData
Roamingnpmnode_modulesnode-inspectorbininspector.js
node-inspector@0.7.0-1 C:UserssamsungAppDataRoamingnpmnode_modulesnode-in
spector
├── debug@0.7.4
├── async@0.2.9
├── strong-data-uri@0.1.0 (truncate@1.0.2)
├── glob@3.2.8 (inherits@2.0.1, minimatch@0.2.14)
├── rc@0.3.3 (deep-extend@0.2.6, ini@1.1.0, optimist@0.3.7)
├── express@3.4.8 (methods@0.1.0, fresh@0.2.0, buffer-crc32@0.2.1, merge-desc
riptors@0.0.1, range-parser@0.0.4, cookie@0.1.0, cookie-signature@1.0.1, mkdirp@
0.3.5, commander@1.3.2, send@0.1.4, connect@2.12.0)
└── socket.io@0.9.16 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.i
o-client@0.9.16)

可能想知道我该如何处理它?谢谢!我已经成功地使用"npm install express"来安装express。

别担心,这在Windows系统上是正常的。我在安装它时收到相同的警告,它工作正常:

MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual
 Studio 2008.  [C:UsersgustavoAppDataRoamingnpmnode_modulesnode-inspectornode_modulessocket.ionode_modulessocket.io-clientnode_moduleswsbuildbinding.sln]
MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual
 Studio 2008.  [C:UsersgustavoAppDataRoamingnpmnode_modulesnode-inspectornode_modulessocket.ionode_modulessocket.io-clientnode_moduleswsbuildbinding.sln]
C:UsersgustavoAppDataRoamingnpmnode-inspector -> C:UsersgustavoAppDataRoamingnpmnode_modulesnode-inspectorbininspector.js
node-inspector@0.7.0-1 C:UsersgustavoAppDataRoamingnpmnode_modulesnode-inspector
└── ...dependencies
C:Usersgustavo
λ node-inspector
Node Inspector v0.7.0-1
   info  - socket.io started
Visit http://127.0.0.1:8080/debug?port=5858 to start debugging.

尝试执行自己node-inspector;)

此外,如果 npm install 命令未完成并出现显式错误,则一切顺利。

一些节点模块必须根据操作系统进行编译。 node-gyp会处理这个问题,但这需要一个C++运行时。

因此,请确保您已安装一些C++库。请参阅 https://npmjs.org/package/node-gyp 的 Windows 安装说明

最新更新