vue疑难解答

QA1 依赖的版本冲突

Could not resolve dependency:

peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.1

node_modules/@vue/composition-api

@vue/composition-api@"^1.7.1" from the root project

peerOptional @vue/composition-api@"^1.0.0-rc.1" from vue-demi@0.13.11

node_modules/vue-demi

vue-demi@"^0.13.2" from vue-echarts@6.5.4

node_modules/vue-echarts

vue-echarts@"^6.5.4" from the root project

peerOptional @vue/composition-api@"^1.0.5" from vue-echarts@6.5.4

node_modules/vue-echarts

vue-echarts@"^6.5.4" from the root project

Conflicting peer dependency: vue@2.6.14

node_modules/vue

peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.1

node_modules/@vue/composition-api

@vue/composition-api@"^1.7.1" from the root project

peerOptional @vue/composition-api@"^1.0.0-rc.1" from vue-demi@0.13.11

node_modules/vue-demi

vue-demi@"^0.13.2" from vue-echarts@6.5.4

node_modules/vue-echarts

vue-echarts@"^6.5.4" from the root project

peerOptional @vue/composition-api@"^1.0.5" from vue-echarts@6.5.4

node_modules/vue-echarts

vue-echarts@"^6.5.4" from the root project

Fix the upstream dependency conflict, or retry

this command with --force or --legacy-peer-deps

to accept an incorrect (and potentially broken) dependency resolution.

解决:

相关推荐
霍理迪14 小时前
CSS——背景样式以及雪碧图、渐变
前端·css
火星牛15 小时前
AI IDE试用(一)
javascript·ide
jump_jump17 小时前
基于 Squoosh WASM 的浏览器端图片转换库
前端·javascript·性能优化
小二·21 小时前
前端监控体系完全指南:从错误捕获到用户行为分析(Vue 3 + Sentry + Web Vitals)
前端·vue.js·sentry
阿珊和她的猫1 天前
IIFE:JavaScript 中的立即调用函数表达式
开发语言·javascript·状态模式
阿珊和她的猫1 天前
`require` 与 `import` 的区别剖析
前端·webpack
+VX:Fegn08951 天前
计算机毕业设计|基于springboot + vue在线音乐播放系统(源码+数据库+文档)
数据库·vue.js·spring boot·后端·课程设计
智商偏低1 天前
JSEncrypt
javascript
谎言西西里1 天前
零基础 Coze + 前端 Vue3 边玩边开发:宠物冰球运动员生成器
前端·coze
+VX:Fegn08951 天前
计算机毕业设计|基于springboot + vue律师咨询系统(源码+数据库+文档)
java·数据库·vue.js·spring boot·后端·课程设计