标签:npm,vue,ERR,ts,element,plus,报错 From: https://www.cnblogs.com/zhangsai/p/17659439.htmlPS 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: [email protected]
npm ERR! Found: [email protected]
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/[email protected]
npm ERR! node_modules/@vue/babel-preset-app
npm ERR! @vue/babel-preset-app@"^4.5.9" from @vue/[email protected]
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: [email protected]
npm ERR! node_modules/vue
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.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.txtnpm 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>