我试着用
npm install steam
但是我得到一个错误说
我不确定如何解决这个问题,我已经在两个不同的npm模块安装上得到了这个。不过,我可以安装其他模块。
我的尝试:
安装任何需要的依赖项。(大熊座、node-gyp等)
安装Visual c++ 2005。
安装Visual c++ 2010。
将环境变量路径更改为/VC/(在另一个StackOverflow线程/问题上找到)。
谷歌,谷歌,谷歌。
我也得到一个错误尝试做:
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