0
点赞
收藏
分享

微信扫一扫

解决Error: Can't find Python executable

慕犹清 2022-08-18 阅读 196

 

 

在执行 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​​

问题解决了!,给个关注给个赞,是对我最大的鼓励和关怀

举报

相关推荐

0 条评论