1、执行npm i -g npm

2、执行npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

3、npm uninstall node-sass

4、npm install node-sass

 

node16+ 对应的node-sass,sass-loader版本

  "sass-loader": "^10.2.0",

  "node-sass": "^6.0.1"

 centos:npm install sass-loader@10.2.0 node-sass@6.0.1

posted on 2022-01-11 09:30  vofill-work  阅读(391)  评论(0编辑  收藏  举报