焦点速读:pm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! Whil
首页 > 财经 > 正文

焦点速读:pm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! Whil

来源:腾讯云 2023-04-25 19:30:41


(资料图片)

报错内容

npm i element-ui -Snpm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolvenpm ERR! npm ERR! While resolving: undefined@undefinednpm ERR! Found: vue@3.2.47npm ERR! node_modules/vuenpm ERR!   peer vue@"3.2.47" from @vue/server-renderer@3.2.47npm ERR!   node_modules/@vue/server-renderernpm ERR!     @vue/server-renderer@"3.2.47" from vue@3.2.47npm ERR!   peer vue@"^3.2.0" from vue-router@4.1.6npm ERR!   node_modules/vue-routernpm ERR!     vue-router@"^4.1.6" from the root projectnpm ERR! npm ERR! Could not resolve dependency:npm ERR! element-ui@"*" from the root projectnpm ERR! npm ERR! Conflicting peer dependency: vue@2.7.14npm ERR! node_modules/vuenpm ERR!   peer vue@"^2.5.17" from element-ui@2.15.13npm ERR!   node_modules/element-uinpm ERR!     element-ui@"*" from the root projectnpm ERR! npm ERR! Fix the upstream dependency conflict, or retrynpm ERR! this command with --force, or --legacy-peer-depsnpm ERR! to accept an incorrect (and potentially broken) dependency resolution.npm ERR! npm ERR! See /Users/naitang/.npm/eresolve-report.txt for a full report.npm ERR! A complete log of this run can be found in:npm ERR!     /Users/naitang/.npm/_logs/2023-02-25T06_42_28_114Z-debug-0.log

vue安装element报错

或者安装其他报错

应该是版本问题

在安装命令后面加上

-legacy-peer-deps

例如

npm i element-ui -S -legacy-peer-deps
关键词:

热图推荐

Copyright @ 2008-2017 news.baoshe.net All Rights Reserved 报社网 版权所有 京ICP备12018864号-10

联系我们:291 32 36@qq.com

营业执照公示信息