Sass依赖问题To install it, you can run: npm install --save !!vue-style-loader!css-loader?

  • !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-1d913ec9","scoped":false,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!./assets/styles/interval.scss in ./src/pages/interval.vue

To install it, you can run: npm install --save !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-1d913ec9","scoped":false,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!./assets/styles/interval.scss


image.png

安装node-sass
安装sass-Loader
如果还报错
降低sass-loader的版本


image.png

然后遇到这个问题了?
stack Error: gyp failed with exit code: 1
安装全局gyp

rm -rf .node-gyp/

npm install -g node-gyp

rm -rf 项目/node_modules
还报错?
降低node版本
em。。。
删除package-lock,node_module。npm cache clean --force
还报错?
。。。。。马德

你可能感兴趣的:(Sass依赖问题To install it, you can run: npm install --save !!vue-style-loader!css-loader?)