npm安装依赖过程中,开始都很正常,最后报这个错:
Error: Can’t find Python executable “python”, you can set the PYTHON env variable
解决方案:
1、安装windows-build-tools
npm install --global --production windows-build-tools
在这里有一个坑:在执行第一个语句的时候他会卡在
这里可以换一个语句
npm install --global --production windows-build-tools@4.0.0
2、安装node-gyp
npm install --global node-gyp
解决完成!!!!