我想用
npm install steam
但我有个错误说
我不确定如何修复这一点,我已经得到这两个不同的npm模块安装。但我可以安装其他模块。
我尝试过的:安装它需要的任何依赖项。(ursa、node-gyp等)安装Visual C++2005。安装Visual C++2010。将enviroment变量path更改为/vc/(在另一个StackOverflow线程/question.Googled、Googled&Googled上找到。
尝试执行时也会出现错误:
npm install ursa
错误是:
以管理员身份从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