当前位置:网站首页>NPM install reports an error NPM err could not resolve dependency NPM err peer
NPM install reports an error NPM err could not resolve dependency NPM err peer
2022-07-29 07:12:00 【m0_ sixty-seven million four hundred and one thousand two hundr】
vue Installation error npm ERR! Could not resolve dependency: npm ERR! peer…
The error log is as follows
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/eslint
npm ERR! [email protected]“^7.4.0” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer [email protected]“^5.0.0 || ^6.0.0” from [email protected]
npm ERR! dev [email protected]“^6.2.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! See D: ode ode_cacheeresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! D: ode ode_cache_logs?2-04-28T06_55_18_256Z-debug-0.log
Error reason
In the new version of npm in , By default ,npm install Encounter conflict peerDependencies Will fail .
terms of settlement
Use --force
or --legacy-peer-deps
This situation can be solved .
--force
Will ignore the conflict , And force to obtain remote data npm Library resources , Overwrite the original version when there is a resource conflict .--legacy-peer-deps
: Ignore all during installation peerDependencies, Ignore dependency conflicts , use npm edition 4 To version 6 To install dependencies , Existing dependencies will not override .
Suggest using --legacy-peer-deps
It's safer
It can be solved by reinstalling at the terminal
npm install --legacy-peer-deps
边栏推荐
- Is online legend software testing training really so black hearted? Are they all scams?
- Flink real time warehouse DWD layer (traffic domain) template code
- Junda technology | applicable to "riyueyuan" brand ups wechat cloud monitoring card
- SSH免密登录-两台虚拟机建立免密通道 双向信任
- 基于C语言设计的学籍管理系统
- VMware16创建虚拟机:无法创建新虚拟机,不具备执行此操作的权限
- Flink实时仓库-DWD层(kafka-关联mysql的lookup join)模板代码
- Vmware16 create virtual machine: win11 cannot be installed
- 【charles日常问题】开启charles,使用不了钉钉
- After 4 years of development and 13K, if you want to change to automated testing, can your salary still rise···
猜你喜欢
Spark Learning Notes (VII) -- spark core core programming - RDD serialization / dependency / persistence / partition / accumulator / broadcast variables
Vmware16 create virtual machine: cannot create a new virtual machine, do not have permission to perform this operation
使用VsCode配置MySQL实现连接、查询、等功能
基于C语言实现图书借阅管理系统
CAN&CANFD综合测试分析软件LKMaster与PCAN-Explorer 6分析软件的优势对比
要不要满足客户所有的需求
Junda technology | applicable to "riyueyuan" brand ups wechat cloud monitoring card
IO stream - file - properties
2D cartoon rendering - advanced skills
VMware16安装虚拟机遇到的问题
随机推荐
以太网接口介绍
WPF嵌套布局案例
Summary of 2022 SQL classic interview questions (with analysis)
Revolution of game assets
SSH password free login - two virtual machines establish password free channel two-way trust
上采样之反卷积操作
MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of
[C language brush leetcode] 1054. Bar code with equal distance (m)
二次元卡通渲染——进阶技巧
使用VsCode配置MySQL实现连接、查询、等功能
好文佳句摘录
Leetcode-592: fraction addition and subtraction
[cf1054h] epic Revolution -- number theory, convolution, arbitrary modulus NTT
CVPR2021| 基于自监督学习的多视图立体匹配 (CVPR2021)
MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of
pytorch的技巧记录
Cesium反射
Can MySQL export tables regularly?
fillder使用
[solution] error: lib/bridge_ generated. dart:837:9: Error: The parameter ‘ptr‘ of the method ‘FlutterRustB