十*七 2021-11-29 20:32 采纳率: 75%
浏览 145
已结题

vue 安装 swiper 报错,不知道是不是依赖问题

问题遇到的现象和发生背景

不知道是不是依赖问题

运行结果及报错内容
PS D:\Web前端源码\14_Vue.js源码\VUE3\musicapp> npm install swiper vue-awesome-swiper --save
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: musicapp@0.1.0
npm ERR! Found: swiper@7.3.1
npm ERR! node_modules/swiper
npm ERR!   swiper@"^7.3.1" 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@"*" 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\拾柒\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\拾柒\AppData\Local\npm-cache\_logs\2021-11-29T12_16_47_836Z-debug.log

  • 写回答

2条回答 默认 最新

  • 孙叫兽 前端领域优质创作者 2021-11-29 21:15
    关注

    依赖有冲突,卸载干净重新装

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 6月30日
  • 已采纳回答 6月22日
  • 创建了问题 11月29日

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度