首页 > 其他分享 >npm错误——npm ERR.code ERESOLVE 解决方法

npm错误——npm ERR.code ERESOLVE 解决方法

时间:2023-06-19 17:34:35浏览次数:31  
标签:npm code ERR dependency ERESOLVE ta

npm错误——npm ERR.code ERESOLVE 解决方法

 

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vue
npm ERR! vue@"^3.2.37" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
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 C:\Users\v'en'dent'ta\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\v'en'dent'ta\AppData\Local\npm-cache\_logs\2022-10-22T01_16_11_947Z-debug-0.log
PS C:\Users\v'en'dent'ta\Desktop\vite-demo> npm ERR! code ERESOLVE

 

 

通常是依赖包被判别为冲突(实际上不一定冲突)时抛出的错误,如确定不存在冲突时,可用以下方法:

在需要运行的命令后加上:--legacy-peer-deps 

标签:npm,code,ERR,dependency,ERESOLVE,ta
From: https://www.cnblogs.com/Dasate/p/17491689.html

相关文章

  • Codeforces Round 879 (Div
    CodeforcesRound879(Div.2)A-D题解第一次写题解,请见谅O3Oa题代码是完整的,后面的只显示主要内容的代码A.UnitArray题目解释他会给你一个只包含1或者-1的数字串,每次操作可以把1变成-1或者把-1变成1,要求操作之后的串满足每一位累加>=0,每一位累乘=1,求最小的操作次数思路......
  • QA||TypeError: ‘module‘ object is not callable报错怎么debugIHRM接口自动化测试
    unittest.py生成测试报告时执行报错:TypeError:‘module‘objectisnotcallable 代码如下 原因:结合pycharm自动标注和报错信息,分析出应该是HTMLTestRunner使用问题,结合网上查阅说是因为import的问题,所以基本问题定位到了HTMLTestRunner应该导入HTMLTestRunner.py中的HTML......
  • QA|ValueError: write to closed file报错怎么debug|IHRM接口自动化测试
    unittest生成自动化测试报告时报错ValueError:writetoclosedfile,如下图代码如下:  原因排查:因为withopen打开文件后会自动关闭,也就是上图16行执行完就自动关闭了,此时再执行测试套件就无法写入已关闭的文件中了,解决办法是把测试套件执行操作放到withopen里面,如下图: ......
  • 安装oh-my-zsh报错fatal: gnutls_handshake() failed: Error in the pull function的
    今天在安装oh-my-zsh时碰到一个安装问题,报错内容如下:root@ubuntu18:~/ohmyzsh/tools#./install.shCloningOhMyZsh...InitializedemptyGitrepositoryin/root/.oh-my-zsh/.git/fatal:unabletoaccess'https://github.com/ohmyzsh/ohmyzsh.git/':gnutls_handshake()......
  • VsCode配置PHP断点调试环境笔记
    PHPStudy_Pro8.1.1.2VsCode1.51.1PHP7.4.3NTSPHP_Xdebug-2.9.8-7.4-vc15-nts-x86_64首先查看当前环境的phpinfo信息根据phpinfo的信息选择对应的XDebug进行下载:https://xdebug.org/download推荐使用:https://xdebug.org/wizard,将phpinfo的信息全选复制到这里进行分析,然后下......
  • AtCoder Regular Contest 162
    A答案即后缀最小值个数。时间复杂度\(\mathcal{O}(n)\)。提交记录:Submission#42717665-AtCoderRegularContest162B发现操作不改变逆序对个数奇偶性。逆序对个数为奇数则无解;为偶数则可以直接模拟。时间复杂度\(\mathcal{O}(n^2)\)。提交记录:Submission#42718848......
  • Error creating bean with name 'sqlSessionFactory' defined in class path resource
    项目启动报错原因分析背景:system模块一个月未重启过,今天重启报数据源问题原因:这里报错的原因是数据源配置问题解决:数据源配置在nacos中,拿该模块的nacos数据源配置与项目启动成功的模块的数据源配置进行对比,检查出不同,改为一样即可......
  • git pull https Received HTTP code 504 from proxy after CONNECT
    我们在服务器上面gitpullcodehub代码的时候会遇到ReceivedHTTPcode504fromproxyafterCONNECT,这个报错多数是因为代理配置的问题。 从以下两个方向进行排查: 1.确认服务器/虚拟机是否配置了全局代理。 检查/etc/profile中是否配置了代理:http_proxy和https_proxy......
  • LeetCode 周赛 350(2023/06/18)01 背包变型题
    本文已收录到AndroidFamily,技术和职场问题,请关注公众号[彭旭锐]和[BaguTreePro]知识星球提问。往期回顾:LeetCode单周赛第348场·数位DP模版学会了吗?T1.总行驶距离(Easy)标签:模拟T2.找出分区值(Medium)标签:排序T3.特别的排列(Medium)标签:图、状态压缩、......
  • Grafana 系列-GaC-2-Grafana Terraform Provider 基础
    系列文章Grafana系列文章Terraform系列文章概述前文最后总结了我的工具选型:GrafanaTerraformproviderJsonnet我们今天先简单介绍GrafanaTerraformprovider.GrafanaTerraformProviderGrafanaprovider为Grafana提供配置管理资源。是目前Grafana官方提供......