解决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

posted @ 2019-08-31 17:52  一路向北√  阅读(13601)  评论(0编辑  收藏  举报

web应用开发&研究 -

业精于勤而荒于嬉。

工作,使我快乐。


Font Awesome | Respond.js | Bootstrap中文网