npm install node-pre-gyp -g
管理员身份运行Power Shell
npm install --global --production windows-build-tools
中途卡住可手动安装VisualStudio
配置Python版本
npm config set python python2.7
(使用 python -V 查看版本,配置相同的版本)
最终会有额外大文件node_modules\sqlite3\build-tmp-napi-v6,52MB删掉
npm install node-pre-gyp -g
npm install --global --production windows-build-tools
中途卡住可手动安装VisualStudio
npm config set python python2.7
(使用 python -V 查看版本,配置相同的版本)
最终会有额外大文件node_modules\sqlite3\build-tmp-napi-v6,52MB删掉
Comments | NOTHING