npm安装错误-MSB3428:无法加载Visual C ++组件"VCBuild.exe". [英] npm install error - MSB3428: Could not load the Visual C++ component "VCBuild.exe"
问题描述
我正在尝试使用
npm install steam
但我收到一个错误提示
我不确定如何解决此问题,并且已经在两个不同的npm模块安装中获得了此解决方案.我可以安装其他模块.
I'm not sure how to fix this and I have gotten this on two different npm module installs. I can install other modules however.
我尝试过的方法: 安装所需的任何依赖项. (ursa,node-gyp等) 安装Visual C ++ 2005. 安装Visual C ++ 2010. 将环境变量路径更改为/VC/(位于另一个StackOverflow线程/问题上. 谷歌搜索,谷歌搜索&谷歌搜索.
What I have tried: Install whatever dependencies it needs. (ursa, node-gyp etc) Install Visual C++ 2005. Install Visual C++ 2010. Change the enviroment variable path to /VC/ (found on another StackOverflow thread/question. Googled, googled & googled.
尝试操作时也出现错误:
I also get an error trying do:
npm install ursa
错误是:
推荐答案
以管理员
可选部分,如果您需要使用代理服务器:
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.这就是您需要的.
No need for Visual Studio. This has what you need.
参考文献:
https://www.npmjs.com/package/windows-build-tools
https://github.com/felixrieseberg/windows-build-tools
这篇关于npm安装错误-MSB3428:无法加载Visual C ++组件"VCBuild.exe".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!