最近在學(xué)習(xí)vue框架,在執(zhí)行npm run dev的時(shí)候 出現(xiàn)如下錯(cuò)誤:
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
我的是因?yàn)橐雜css文件報(bào)錯(cuò)泻骤,就是style加上lang scss就不行了。
解決思路:
npm install sass-loader --save;
npm install node-sass --save;
然后運(yùn)行npm run start就可以