![](/img/trans.png)
[英]npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve. When I ran npm install
[英]could not resolve npm ERR! npm ERR! While resolving: vue-awesome-swiper@4.1.1 npm ERR! Found: swiper@6.5.4 when run npm install
我正在尝试在我的电脑上安装一个项目,但在运行 npm 时出现此错误安装它在旧笔记本电脑上运行良好,但在新笔记本电脑上我收到此错误
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: vue-awesome-swiper@4.1.1
npm ERR! Found: swiper@6.5.4
npm ERR! node_modules/swiper
npm ERR! swiper@"^6.5.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer swiper@"^5.2.0" from vue-awesome-swiper@4.1.1
npm ERR! node_modules/vue-awesome-swiper
npm ERR! vue-awesome-swiper@"^4.1.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: swiper@5.4.5
npm ERR! node_modules/swiper
npm ERR! peer swiper@"^5.2.0" from vue-awesome-swiper@4.1.1
npm ERR! node_modules/vue-awesome-swiper
npm ERR! vue-awesome-swiper@"^4.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\mohammed mujahid\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mohammed mujahid\AppData\Local\npm-cache\_logs\2022-08-28T08_40_24_210Z-debug-0.log
运行npm install --force
或npm install --legacy-peer-deps
上面的注释将强制安装所有的包
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.