Error in installing node.js module using npm

2019-01-23 04:00发布

I am trying to install the following module using node.js, but keep on getting the following error. Do you have any suggestions on what I should do? So I am using windows 7 and have installed .NET Framework 2.0 SDK as well.

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.

标签: node.js npm
7条回答
该账号已被封号
2楼-- · 2019-01-23 04:47

The easiest way is to install a trial version of visual studio and run npm in the visual studio command prompt as administrator. Visual studio 2012 does the job.

查看更多
登录 后发表回答