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

按照readme总是出错,依赖无法解决。各种报错。 #207

Closed
yzx1208 opened this issue Jul 27, 2022 · 3 comments · Fixed by #218
Closed

按照readme总是出错,依赖无法解决。各种报错。 #207

yzx1208 opened this issue Jul 27, 2022 · 3 comments · Fixed by #218

Comments

@yzx1208
Copy link

yzx1208 commented Jul 27, 2022

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vue
npm ERR! vue@"^3.2.26" from the root project
npm ERR! peer vue@"^3.2.0" from @element-plus/[email protected]
npm ERR! node_modules/@element-plus/icons-vue
npm ERR! @element-plus/icons-vue@"^2.0.6" from [email protected]
npm ERR! node_modules/element-plus
npm ERR! element-plus@"^2.2.6" from the root project
npm ERR! 2 more (@tmagic/editor, @tmagic/form)
npm ERR! 12 more (@tmagic/editor, @tmagic/form, @vue/babel-preset-app, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^2.x" from [email protected]
npm ERR! node_modules/vue-jest
npm ERR! dev vue-jest@"^3.0.7" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vue
npm ERR! peer vue@"^2.x" from [email protected]
npm ERR! node_modules/vue-jest
npm ERR! dev vue-jest@"^3.0.7" 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 /root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-07-27T03_15_12_697Z-debug-0.log

@jia000
Copy link
Collaborator

jia000 commented Jul 27, 2022

是用pnpm吗

@yzx1208
Copy link
Author

yzx1208 commented Jul 27, 2022

是用pnpm吗
我使用的环境是:
1.离线
2.centos7
3.node 16.16
4.直接在magic-admin目录下执行setup.sh
结果是失败,已经装了两天了还是没法解决,是不是有额外的依赖需要联网?

@jia000
Copy link
Collaborator

jia000 commented Jul 28, 2022

不要执行setup.sh
cd web
npm i
npm run serve

cd server
npm i
npm run dev

jia000 pushed a commit that referenced this issue Aug 1, 2022
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

Successfully merging a pull request may close this issue.

2 participants