解决Error: Can't find Python executable "python", you can set the PYTHON env variable

在执行 yarn start时遇到问题, 最后一行提示
 Run `npm rebuild node-sass` to download the binding for your current environment.

于是按提示操作   输入命令  npm rebuild node-sass 的时候有时会遇到错误 

1 Error: Can't find Python executable "python", you can set the PYTHON env variable

导致安装部分包错误,于是百度找到了解决的办法

 

解决环境: Windows 7 64位操作系统 

1 cnpm install --global --production windows-build-tools

其他平台解决办法 https://github.com/nodejs/node-gyp

猜你喜欢

转载自www.cnblogs.com/it-Ren/p/11439905.html
今日推荐