Error: Can’t find Python executable “python”, you can set the PYTHON env variable. && Module build failed (from ./node_modules/sass-loader/dist/cjs.js) 解決


yarn 安裝依賴報錯

  

參考https://blog.csdn.net/qq_39165556/article/details/94590365解決無效

結果npm install --global --production windows-build-tools 就報錯如下

  

 繼續研究變成windows權限問題,所以不走這條路

重新刪除依賴包后

 

用npm i 方式安裝,也報錯但不一樣

報錯npm ERR! chromedriver@2.46.0 install: `node install.js` 

參考https://www.cnblogs.com/yflbk-2016/p/13299564.html解決

然后 npm run serve

又報錯 Module build failed (from ./node_modules/sass-loader/dist/cjs.js)

  

 

 這個是因為node-sass沒安裝好,所以要重新安裝
運行命令:npm install node-sass --registry=https://registry.npm.taobao.org

執行警告 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):(解釋https://blog.csdn.net/weixin_39690767/article/details/80025538

不影響安裝后直接啟動

本地測試 可~


免責聲明!

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



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