十*七 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日

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分