npm安装依赖过程中报错:Error: Can't find Python executable "python", you can set the PYTHON env variable
报错场景: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
2、安装node-gyp
npm install --global node-gyp
问题完美解决!
本文感谢https://blog.csdn.net/qq_39165556/article/details/94590365的分享