Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue upgrade更新vue cli报错 #762

Open
StrawHat179 opened this issue Apr 15, 2023 · 6 comments
Open

vue upgrade更新vue cli报错 #762

StrawHat179 opened this issue Apr 15, 2023 · 6 comments

Comments

@StrawHat179
Copy link

报错信息如下:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vue/cli-plugin-eslint@4.4.4
npm ERR! Found: @vue/cli-service@5.0.8
npm ERR! node_modules/@vue/cli-service
npm ERR! peer @vue/cli-service@"^3.0.0 || ^4.0.0 || ^5.0.0-0" from @vue/cli-plugin-router@5.0.8
npm ERR! node_modules/@vue/cli-plugin-router
npm ERR! @vue/cli-plugin-router@"^5.0.8" from @vue/cli-service@5.0.8
npm ERR! peer @vue/cli-service@"^3.0.0 || ^4.0.0 || ^5.0.0-0" from @vue/cli-plugin-vuex@5.0.8
npm ERR! node_modules/@vue/cli-plugin-vuex
npm ERR! @vue/cli-plugin-vuex@"^5.0.8" from @vue/cli-service@5.0.8
npm ERR! 2 more (the root project, @vue/cli-plugin-babel)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @vue/cli-service@"^3.0.0 || ^4.0.0-0" from @vue/cli-plugin-eslint@4.4.4
npm ERR! node_modules/@vue/cli-plugin-eslint
npm ERR! dev @vue/cli-plugin-eslint@"4.4.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @vue/cli-service@4.5.19
npm ERR! node_modules/@vue/cli-service
npm ERR! peer @vue/cli-service@"^3.0.0 || ^4.0.0-0" from @vue/cli-plugin-eslint@4.4.4
npm ERR! node_modules/@vue/cli-plugin-eslint
npm ERR! dev @vue/cli-plugin-eslint@"4.4.4" 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!
npm ERR! For a full report see:
npm ERR! C:\Users\CaoMao\AppData\Local\npm-cache_logs\2023-04-15T11_36_53_088Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\CaoMao\AppData\Local\npm-cache_logs\2023-04-15T11_36_53_088Z-debug-0.log
ERROR Error: command failed: npm install --loglevel error @vue/cli-plugin-babel@~5.0.8

image
有大佬知道这是怎么回事吗

@UxieVerity
Copy link

你为啥要更新呢,你更新这一个依赖包会打破原来的依赖链的呀

@StrawHat179
Copy link
Author

StrawHat179 commented May 29, 2023 via email

@ilaipi
Copy link

ilaipi commented Jun 8, 2023

这个项目版本都太老了,现在安装依赖各种报错,警告

@StrawHat179
Copy link
Author

StrawHat179 commented Jun 8, 2023 via email

@ilaipi
Copy link

ilaipi commented Jun 9, 2023

上面那个看起来不是作者啊,没任何标识...

我跟你还不一样,我是刚刚clone,也没想着升级啥,就是clone后直接npm i,然后就各种报错

项目里也没有个package-lock.json

@StrawHat179
Copy link
Author

StrawHat179 commented Jun 9, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants