直接执行下列代码,干净利落~
一、node-sass的镜像源配置
//node-sass的配置淘宝源:
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
二、npm的镜像源配置
//npm的配置淘宝源:
npm config set registry https://registry.npm.taobao.org
三、yarn的镜像源配置
// 先安装yarn
npm install -g yarn
// 配置yarn相关的镜像源
yarn config set registry https://registry.npm.taobao.org
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/