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

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日

悬赏问题

  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签)
  • ¥50 sft下载大文阻塞卡死
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失
  • ¥15 springboot+vue 集成keycloak sso到阿里云
  • ¥15 win7系统进入桌面过一秒后突然黑屏
  • ¥30 backtrader对于期货交易的现金和资产计算的问题
  • ¥15 求C# .net4.8小报表工具