安装stylus后,使用报错
来源:7-1 Vue项目首页 - header区域开发
海神名
2018-08-14
ERROR Failed to compile with 1 errors 10:32:17 PM This dependency was not found: * !!vue-style-loader!css-loader?{"sourceMap":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-5558831a","scoped":true,"hasInlineConfig":false}!stylus-loader?{"sourceMap":true}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Header.vue in ./src/pages/home/components/Header.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-5558831a","scoped":true,"hasInlineConfig":false}!stylus-loader?{"sourceMap":true}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Header.vue
写回答
5回答
-
宝慕林8959580
2018-08-18
<style scoped lang="stylus">好像就可以了
022018-08-19 -
宝慕林8959580
2018-08-18
同样遇到这样的问题 请问解决了吗
022018-08-19 -
Dell
2018-08-15
不要用你的wifi,换成手机热点流量试试,再就是换一下cnpm进行安装,感觉很可能是下载包没下载全的原因。
012018-08-16 -
海神名
提问者
2018-08-15
hsm@Haishen:~/code/DELL_HOME/js/Travel$ npm install > uglifyjs-webpack-plugin@0.4.6 postinstall /home/hsm/code/DELL_HOME/js/Travel/node_modules/webpack/node_modules/uglifyjs-webpack-plugin > node lib/post_install.js npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) added 1255 packages from 698 contributors and audited 9316 packages in 22.828s found 0 vulnerabilities
00 -
Dell
2018-08-15
node_modules删掉,重新安装一次所有依赖
022018-08-19
相似问题