關於npm install 安裝報錯的問題缺少python / sass..... Can't find python executable "python" , you can set the...
時間 2021-01-10
標籤
npm
node.js
vue.js
關於npm install 安裝報錯的問題
npm install 報錯 未安裝python
去Python官網下載python安裝 ,安裝的時候選擇
https://www.python.org/
並在環境變量中 path項中加入python的安裝地址,
有時安裝完了python , sass 也會報錯。
因爲npm的題,安裝淘寶的鏡像 使用cnpm 鏡像 ,在項目文件夾下運行
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
- 最後在運行npm install 應該就不會報錯了 總之就是報錯報什麼就去看看是不是缺什麼環境,或者什麼依賴安裝不上 找辦法安裝上所需的環境 依賴。自然就能解決問題了。。