gyp ERR! stack Error : can't find python executable "python",you can set the PYTHON env variable.


 

 

 

vue中安裝node-sass

npm install node-sass --save-dev

 

出現上面圖中問題

解決辦法:
vscode里,打開終端,輸入下面的內容
先輸入(在管理員模式下打開)

npm install --global --production windows-build-tools

 

否則會提示:

Please restart thie script from a administrative PowerShell!

 

再輸入

npm install --global node-gyp 

 




原文鏈接:https://blog.csdn.net/caicsama/article/details/103679242


免責聲明!

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



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