gulp npm安裝gulp-sass報錯: checking for Python executable "python2" in the PATH

今天安裝gulp-sass的時候報錯: checking for Python executable "python2" in the PATH,

嘗試了很多方法,最後用cnpm來安裝就安裝成功了


具體做法:

1. 安裝cnpm

 npm install cnpm -g --registry=https://registry.npm.taobao.org

2. 安裝gulp-sass

語法都是一樣的,只是將npm換成cnpm

cnpm install --save-dev gulp-sass


搞定!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章