gulp npm安装gulp-sass报错: checking for Python executable "python2" in the PATH

2018-05-17 21:29:39

今天安装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


搞定!


  • 2019-09-29 10:28:04

    程序员实用工具网站

    程序员开发需要具备良好的信息检索能力,为了备忘(收藏夹真是满了),将开发过程中常用的网站进行整理。