Vue报错 vue-style-loader!css-loader。。。。you can run: npm install --save !!vue-style-loader!css-loader

This dependency was not found:

* !!vue-style-loader!css-loader?{
     "minimize":false,"sourceMap":false}!../../node_modules/vue-loader/lib/style-compiler/index?{
     "vue":true,"id":"data-v-1d57e5ea","scoped":false,"hasInlineConfig":false}!stylus-loader?{
     "sourceMap":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./a.vue in ./src/components/a.vue

To install it, you can run: npm install --save !!vue-style-loader!css-loader?{
     "minimize":false,"sourceMap":false}!../../node_modules/vue-loader/lib/style-compiler/index?{
     "vue":true,"id":"data-v-1d57e5ea","scoped":false,"hasInlineConfig":false}!stylus-loader?{
     "sourceMap":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./a.vu

解决,先按照对应的包,执行下面两步:

npm install sass-loader --save;
npm install node-sass --save;

但是还是报错,后来发现我的sass-loader版本过高,换成低一点的就可以了
Vue报错 vue-style-loader!css-loader。。。。you can run: npm install --save !!vue-style-loader!css-loader_第1张图片
换好之后,在控制台执行

 cnpm install 

你可能感兴趣的:(vue,Bug,vue)