我正在尝试使用
npm install steam
但我收到一个错误提示
我不确定如何解决这个问题,我已经在两个不同的 npm 模块安装中得到了这个。不过我可以安装其他模块。
我尝试过的: 安装它需要的任何依赖项。 (ursa, node-gyp 等) 安装 Visual C++ 2005。 安装 Visual C++ 2010。 将环境变量路径更改为/VC/(在另一个 StackOverflow 线程/问题上找到。 谷歌搜索,谷歌搜索和谷歌搜索。
我在尝试执行操作时也遇到错误:
npm install ursa
错误是:
最佳答案
以 Administrator
的身份从 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
关于node.js - npm 安装错误 - MSB3428 : Could not load the Visual C++ component "VCBuild.exe",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21658832/