This dependency was not found: * !!vue-style-loader!css-loader?……

 

但是当你新建一个vue项目时,需要重新安装stylus,否则报错:

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.vue

 

解决步骤:

 当前目录(项目)下:

  mac用户:sudo npm install 

                     npm run dev 

windows用户:npm install 

                           npm run dev 

posted @ 2018-09-07 09:06  caseywei  阅读(433)  评论(0编辑  收藏  举报