首页 > 其他分享 ><npm > pm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While reso

<npm > pm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While reso

时间:2023-04-06 09:25:55浏览次数:44  
标签:npm vue ERR element 3.2 peer ERESOLVE

报错内容

 npm i element-ui -S
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/vue
npm ERR!   peer vue@"3.2.47" from @vue/[email protected]
npm ERR!   node_modules/@vue/server-renderer
npm ERR!     @vue/server-renderer@"3.2.47" from [email protected]
npm ERR!   peer vue@"^3.2.0" from [email protected]
npm ERR!   node_modules/vue-router
npm ERR!     vue-router@"^4.1.6" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! element-ui@"*" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vue
npm ERR!   peer vue@"^2.5.17" from [email protected]
npm ERR!   node_modules/element-ui
npm ERR!     element-ui@"*" 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! 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

 

标签:npm,vue,ERR,element,3.2,peer,ERESOLVE
From: https://www.cnblogs.com/yuluochengxu/p/17291616.html

相关文章

  • SyntaxError: Non-UTF-8 code starting with ‘\xb9‘ in file问题的解决
    问题描述按照正常模式运行python代码,其中涉及到charset类型,由于某种原因导致代码运行不成功问题解决在python程序的第一行加上这样一行代码:#coding=gbk这样的话,该问题就能解决啦!......
  • #error and #line 用法
    目前#error和#line很少被使用,但是也可以作为定位问题原因的工具#error用于生成一个编译错误的信息。用于自定义程序员特有的编译错误信息。在预处理时起作用。#errormessage//message打印的编译error信息,不需要双引号包围#warningmessage//由于可能在编译的过程中......
  • 解决在创建springboot项目中遇到:Error:(3, 32) java: 无法访问org.springframework.bo
    解决在创建springboot项目中遇到:Error:(3,32)java:无法访问org.springframework.boot.SpringApplication File--->ProjectStructure    选择对应版本        File--->Settings--->Build,Execution,Deployment    修改对应版本 ......
  • 做免密登录传输文件的时候报错:ERROR: Host key verification failed.:解决方法
    报错信息: 在做好公钥以后,准备进行传输到另一台机器的时候,发生了报错。 报错原因:1、在CSDN上面找到了问题的根源,是因为/root/.ssh/known_hosts文件里面有传输错误的记录。2、没有记录的都可以正常传输,至此才找到问题的解决办法。 解决方法:1、切换到/root/.ssh/:[root@......
  • 被ST-Link【The content of ST-Link is corrupt】【Communication error with ST-Link
    直接跳转【4】看解决方法,祝大家都顺利解决【1】我的尝试   【2】我的错误情况【3】我无用的努力【尝试1:点击setting之后的第一个debug页面里面的port要改成sw,不然下载不成功】,其实这样只是比较节约端口而已,当然一般还是都选择【SW】  【尝试2:output里记得把crea......
  • MYSQL ERROR1045 报错的解决办法
    问题原因是密码错误导致的但是我输入的密码是安装MYSQL的时候设定的密码,应该是正确的。其实并不是,因为mysql会随机生成一个乱码作为你的密码。你需要改掉(或者记下)这个密码。解决方法:1.在my.ini中输入以下内容3.保存之后在命令行输入netstartmysql启动服务4.免密码登陆my......
  • 记录在 Ubuntu 中设置 npm 链接不生效问题
    昨天在Ubuntu中安装nodeJS时遇到一个问题,在为npm设置链接时,总是不生效,特此记录一下,也避免大家踩了相同的坑。我采用的是源码包安装nodeJS,将源码包解压后,来到解压的bin目录后使用下面的命令查看是否正常,并在确认正常后为其设置软链接。./node-vsudoln./node/usr/lo......
  • python 报错AssertionError: process has already started
    python报错AssertionError:processhasalreadystarted现象  原因在Python中设置守护进程daemon,一定要放在start方法上面才会有效解决方法 ......
  • django.db.utils.OperationalError: (2026, 'SSL connection error: unknown error nu
    写给自己的问题备忘录django.db.utils.OperationalError:(2026,'SSLconnectionerror:unknownerrornumber')执行:pythonmanage.pymigrate报错,如下。  明明上个项目还好好的,怎么换个就不行了,网上的答案各种各种。决定从自己配置找原因,对比发现,两个环境的 mysqlclie......
  • java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSuppor
    1.报错截图2.问题原因缺少对应的类3.问题解决<dependency><groupId>taglibs</groupId><artifactId>standard</artifactId><version>1.1.2</version></dependency><......