![](/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.