Windows下RSSHub执行NPM i报错.md
背景
今天fork了一份RSSHub准备玩一下,发现 npm i的时候一直报错
1 | node-pre-gyp WARN Using request for node-pre-gyp https download |
原因
在Windows下安装到一些库时,需要编译,所以要按相关环境
解决
- 管理员打开
CMD - 运行
npm install --g --production windows-build-tools成功1
2
3
4
5
6
7
8---------- Visual Studio Build Tools ----------
Successfully installed Visual Studio Build Tools.
------------------- Python --------------------
Successfully installed Python 2.7
Now configuring the Visual Studio Build Tools and Python...
All done!
再次执行npm i就成功了
