问题1
gyp verb check python checking for Python executable "python2" in the PATH
原因分析:没有python2.7
解决方案:
1、快速使用以下语句完成安装
npm install --global --production windows-build-tools
2、自行下载pathyon2.7安装
问题2
不能通过https fetch
解决方案:
$ npm config set registry http://registry.npmjs.org/ $ npm config set strict-ssl false
问题3
提示代理有问题:、
解决方案:
$ npm config set proxy http://xx@xx.com:xxxx
$ npm config set https-proxy=http://xx@xx.com:xxxx
问题4
取消代理设置
解决方案:
$ npm config set proxy null
$ npm config set https-proxy null