vue npm install报错
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.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>
本文来自博客园,作者:hellowworld!,转载请注明原文链接:https://www.cnblogs.com/zhangsai/p/17659439.html
posted on 2023-08-26 20:50 hellowworld! 阅读(135) 评论(0) 编辑 收藏 举报
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步