sass 安装失败
-
所有的依赖都设置淘宝镜像
npm config set registry https://registry.npm.taobao.org/
-
只对node-sass设置拉取地址
npm install node-sass --sass-binary-site=https://npm.taobao.org/mirrors/node-sass
3.在npm config设置
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass
4.在package.json
"nodeSassConfig": { "binarySite": "https://npm.taobao.org/mirrors/node-sass" },
5.在项目目录下新建
.npmrc
文件registry=https://registry.npm.taobao.org/ # 设置私有服 @pm:registry=http://192.168.1.200:8081/repository/npm/
# 比如安装 npm install @pm/axios -S npm install @pm/vue -S