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

搞定!

猜你喜欢

转载自my.oschina.net/zhupengdaniu/blog/1802906