使用npm安装node.js模块时出错

ano*_*123 17 node.js npm

我正在尝试使用node.js安装以下模块,但继续收到以下错误.你对我该做什么有什么建议吗?所以我使用的是Windows 7,并且还安装了.NET Framework 2.0 SDK.

npm install execSync

MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". 
To fix this, 1) install the .NET Framework 2.0 SDK, 
2) install Microsoft Visual Studio 2005 or
3) add the location of the component to the system path if it is installed elsewhere.
Run Code Online (Sandbox Code Playgroud)

ver*_*loc 9

您需要添加VCBuild.exe到您的路径.看看这个答案如何做到:Testacular安装失败,没有vcbuild.exe


Jea*_*erc 8

最简单的方法是安装Visual Studio的试用版并在visual studio命令提示符下以管理员身份运行npm.Visual Studio 2012完成了这项工作.