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

問題解決了!,給個關注給個贊,是對我最大的鼓勵和關懷


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM