[英]Can't install module node.js
我正在尝试从npm安装模块以在我的项目中使用。 每次尝试时,都会收到以下消息:
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:\Users\<name>\Desktop\max-node\control\node_modules\xbox-cont
roller\node_modules\node-hid\build\binding.sln]
我尝试下载.NET框架并将其安装几次,但没有任何反应,我已经安装了SDK。
我如何解决它?
谢谢
-麦肯
从此处下载Visual Studio Express,然后只需运行以下命令:
npm config --global set msvs_version 2015
(假设您已下载VSE 2015)
如果还有其他问题,请确保PATH环境变量包含VCBuild.exe的位置(如上一个答案中所述)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.