vue npm install报错

发布时间 2023-08-26 20:56:35作者: abandon11

PS I:\Vue3+ts+e-plus后台管理\vue3-ts-element-plus-master\vue3-ts-element-plus-master> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: vue3-ts-elementplus@0.1.0
npm ERR! Found: vue@3.0.3
npm ERR! node_modules/vue
npm ERR!   vue@"^3.0.0" from the root project
npm ERR!   peer vue@"^2 || ^3.0.0-0" from @vue/babel-preset-app@4.5.9
npm ERR!   node_modules/@vue/babel-preset-app
npm ERR!     @vue/babel-preset-app@"^4.5.9" from @vue/cli-plugin-babel@4.5.9
npm ERR!     node_modules/@vue/cli-plugin-babel
npm ERR!       dev @vue/cli-plugin-babel@"~4.5.0" from the root project
npm ERR!   4 more (@vue/compiler-sfc, element-plus, vue-router, vuex)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! @element-plus/icons-vue@"^2.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: vue@3.3.4
npm ERR! node_modules/vue
npm ERR!   peer vue@"^3.2.0" from @element-plus/icons-vue@2.1.0
npm ERR!   node_modules/@element-plus/icons-vue
npm ERR!     @element-plus/icons-vue@"^2.1.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.
npm ERR! 
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\LX\AppData\Local\npm-cache\_logs\2023-08-26T12_46_50_749Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\LX\AppData\Local\npm-cache\_logs\2023-08-26T12_46_50_749Z-debug-0.log
PS I:\Vue3+ts+e-plus后台管理\vue3-ts-element-plus-master\vue3-ts-element-plus-master>