其他分享
首页 > 其他分享> > npm 下载一个VueLazyload之后,swipwe报错

npm 下载一个VueLazyload之后,swipwe报错

作者:互联网

问题:
1、npm 下载一个VueLazyload之后,
2、报错
index.js?bed3:161 [WDS] Errors while compiling. Reload prevented.
errors @ index.js?bed3:161
index.js?bed3:167 ./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/lib??ref--5-2!./node_modules/_swiper@5.4.5@swiper/css/swiper.css
Module build failed: Error: ENOENT: no such file or directory, open 'H:\Html\操作脚本\移动端小米商城\mi-shop-stu\node_modules_swiper@5.4.5@swiper\css\swiper.css'
@ ./node_modules/_swiper@5.4.5@swiper/css/swiper.css 4:14-119 13:3-17:5 14:22-127
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
errors @ index.js?bed3:167
index.js?bed3:167 ./node_modules/_swiper@5.4.5@swiper/js/swiper.esm.bundle.js
Module build failed: Error: ENOENT: no such file or directory, open 'H:\Html\操作脚本\移动端小米商城\mi-shop-stu\node_modules_swiper@5.4.5@swiper\js\swiper.esm.bundle.js'
@ ./node_modules/vue-awesome-swiper/dist/vue-awesome-swiper.js 9:80-97
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

解决:重新编译
Errors while compiling. Reload prevented.(而编译。重新加载了)

标签:npm,node,index,modules,js,报错,VueLazyload,css,swiper
来源: https://www.cnblogs.com/ouou-good/p/15319745.html