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

前端代码依赖冲突 #83

Open
wohenbushuang opened this issue Feb 24, 2024 · 2 comments
Open

前端代码依赖冲突 #83

wohenbushuang opened this issue Feb 24, 2024 · 2 comments

Comments

@wohenbushuang
Copy link

root ➜ /workspaces/web $ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @vitejs/plugin-vue@3.2.0
npm ERR! Found: vite@4.5.2
npm ERR! node_modules/vite
npm ERR!   dev vite@"^4.2.7" from the root project
npm ERR!   peer vite@">=2.0.0" from vite-plugin-compression@0.5.1
npm ERR!   node_modules/vite-plugin-compression
npm ERR!     dev vite-plugin-compression@"^0.5.1" from the root project
npm ERR!   4 more (vite-plugin-html, vite-plugin-style-import, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^3.0.0" from @vitejs/plugin-vue@3.2.0
npm ERR! node_modules/@vitejs/plugin-vue
npm ERR!   dev @vitejs/plugin-vue@"^3.2.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: vite@3.2.8
npm ERR! node_modules/vite
npm ERR!   peer vite@"^3.0.0" from @vitejs/plugin-vue@3.2.0
npm ERR!   node_modules/@vitejs/plugin-vue
npm ERR!     dev @vitejs/plugin-vue@"^3.2.0" 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.
@zlaiyyf
Copy link

zlaiyyf commented Feb 29, 2024

npm install -g yarn
yarn install

@xuyunan
Copy link

xuyunan commented Apr 15, 2024

try this, npm install --legacy-peer-deps

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