为什么我安装swiper还会影响之前安装的fastclick了,崩溃

来源:2-5 Vue项目首页 - 首页轮播图(1)

慕雪9296518

2020-08-19 19:54:05

 ERROR  Failed to compile with 3 errors                                                                7:52:41 ├F10: PM┤

These dependencies were not found:


* fastclick in ./src/main.js

* !!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

* swiper/dist/css/swiper.css in ./src/main.js


To install them, you can run: npm install --save fastclick !!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 swiper/dist/css/swiper.css


写回答

1回答

好帮手慕久久

2020-08-20

同学你好,正常情况下,安装两个插件的过程,不会相互影响。推测是由于网络问题,导致fastclick和swiper都没有安装成功,或没有安装完整。建议将node_modules这个文件夹删除,然后重新执行npm install 安装命令,将所有的安装包重新安装一遍,再试试(在走一遍安装依赖包的过程)。

祝学习愉快!

0

0 学习 · 10739 问题

查看课程