本文共 269 字,大约阅读时间需要 1 分钟。
报错场景: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
问题完美解决!
转载地址:http://yqjfk.baihongyu.com/