提问者:小点点

npm安装错误-MSB3428:无法加载Visual C++组件“vcbuild.exe”


我想用

npm install steam

但我有个错误说

我不确定如何修复这一点,我已经得到这两个不同的npm模块安装。但我可以安装其他模块。

我尝试过的:安装它需要的任何依赖项。(ursa、node-gyp等)安装Visual C++2005。安装Visual C++2010。将enviroment变量path更改为/vc/(在另一个StackOverflow线程/question.Googled、Googled&Googled上找到。

尝试执行时也会出现错误:

npm install ursa

错误是:


共1个答案

匿名用户

以管理员身份从cmd行尝试此操作

可选部分,如果需要使用代理:

set HTTP_PROXY=http://login:password@your-proxy-host:your-proxy-port
set HTTPS_PROXY=http://login:password@your-proxy-host:your-proxy-port

运行此:

npm install -g --production windows-build-tools

不需要Visual Studio。这有你需要的。

参考资料:

https://www.npmjs.com/package/windows-build-tools
https://github.com/felixrieseberg/windows-build-tools

相关问题


MySQL Query : SELECT * FROM v9_ask_question WHERE 1=1 AND question regexp '(npm|安装|msb3428|加载|visual|c++|组件|vcbuild.exe)' ORDER BY qid DESC LIMIT 20
MySQL Error : Got error 'repetition-operator operand invalid' from regexp
MySQL Errno : 1139
Message : Got error 'repetition-operator operand invalid' from regexp
Need Help?