【发布时间】:2021-10-12 17:49:44
【问题描述】:
我正在尝试使用说明 here 来安装 Vue 3 的迁移版本。
当我告诉你运行vue upgrade 我选择y 来安装升级然后它给了我以下错误
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ed_editor@0.1.0
npm ERR! Found: vue@2.6.14
npm ERR! node_modules/vue
npm ERR! vue@"^2.6.11" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"3.1.5" from @vue/compiler-sfc@3.1.5
npm ERR! node_modules/@vue/compiler-sfc
npm ERR! peer @vue/compiler-sfc@"^3.0.0-beta.14" from @vue/cli-service@4.5.13
npm ERR! node_modules/@vue/cli-service
npm ERR! dev @vue/cli-service@"~4.5.13" 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\Zach\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\Zach\AppData\Local\npm-cache\_logs\2021-08-08T22_29_19_955Z-debug.log
ERROR command failed: npm install --loglevel error @vue/cli-service@~4.5.13
我已阅读错误消息,但我不确定如何解决该问题。我尝试使用--force,但它似乎只会在以后引起更多问题。
我将如何解决这个问题?
【问题讨论】: