Node Sass6.0.1 版本不兼容4.0.0或者5.0.0
- 首页卸载node-sass
npm uninstall node-sass
- 查看node当前版本对应node-sass版本,https://www.npmjs.com/package/node-sass
node -v
- 安装node-sass
npm install node-sass@版本号
node: v12.14.0;
node-sass: ^4.14.1;
sass-loader: ^10.1.0;
node: v16.20.0;
node-sass: ^6.0.1;
sass-loader: ^10.2.0;