当前位置:网站首页>Pnpm install appears: err_ PNPM_ PEER_ DEP_ ISSUES Unmet peer dependencies
Pnpm install appears: err_ PNPM_ PEER_ DEP_ ISSUES Unmet peer dependencies
2022-07-29 08:15:00 【Bejpse】
Use pnpm install Appears when installing project dependencies :ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies, stay pnpm github issues Find relevant solutions in .

One 、 Preface
Full log
ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies
.
└─┬ koa-views
└─┬ consolidate
└── ? unmet peer [email protected]^16.13.1: found 18.1.0hint: If you don’t want pnpm to fail on peer dependency issues, set the “strict-peer-dependencies” setting to “false”.
Question why : stay npm 3 in , No more forced installation
peerDependencies( Peer to peer dependency ) The package specified in , It's a way of warning us .pnpm The downloaded dependent packages will be cached in the global cache , If the global cache depends on the version and projectpackage.jsonThe version specified in is inconsistent , This is what happenshintWarning .pnpmAnswers given by team members :
There are two types of peer deps: optional peer dependencies and non-optional ones. The warnings are only printed for non-optional peer dependencies. If a package works without the peer dependencies, then it should be declared as optional peer dependency. Optional peer dependencies are supported by npm/yarn/pnpm for a long time.
Two 、 Treatment scheme
In the project
package.jsonMiddle configurationpeerDependencyRulesIgnore the corresponding warning prompt :{
“pnpm”: {
“peerDependencyRules”: {
“ignoreMissing”: [
“react”
]
}
}
}stay
.npmrcAdd... To the configuration filestrict-peer-dependencies=false, This means that strict peer dependency mode will be turned off . The operation command is as follows :npm config set strict-peer-dependencies=false
Reference link :
- https://github.com/pnpm/pnpm/issues/4684
Welcome to visit : Tianwen blog
边栏推荐
- Internet worm
- Inclination sensor accuracy calibration test
- Cs4344 domestic substitute for dp4344 192K dual channel 24 bit DA converter
- Unity Shader学习(六)实现雷达扫描效果
- C language interview preparation I (about understanding Department)
- BiSeNet v2
- Operator overloading
- [cryptography experiment] 0x00 install NTL Library
- Day 014 2D array exercise
- [beauty of software engineering - column notes] 23 | Architect: programmers who don't want to be architects are not good programmers
猜你喜欢

MySQL rownum implementation

(视频+图文)机器学习入门系列-第5章 机器学习实践

Unicode private use areas

BiSeNet v2

Inclination monitoring solution of Internet of things

Tcp/ip five layer reference model and corresponding typical devices and IPv6

Detailed explanation of two modes of FTP

Ansible (automation software)

Preparation of SQL judgment statement

Tle5012b+stm32f103c8t6 (bluepill) reading angle data
随机推荐
Process and concept of process
Compatible with cc1101/cmt2300-dp4301 sub-1g wireless transceiver chip
Low cost 2.4GHz wireless transceiver chip -- ci24r1
Temperature acquisition and control system based on WiFi
Cs5340 domestic alternative dp5340 multi bit audio a/d converter
(视频+图文)机器学习入门系列-第5章 机器学习实践
Dynamic thresholds buffer management in a shared buffer packet switch paper summary
[beauty of software engineering - column notes] "one question and one answer" issue 3 | 18 common software development problem-solving strategies
Operator overloading
[beauty of software engineering - column notes] 24 | technical debt: continue to make do with it, or overthrow it and start over?
Tle5012b+stm32f103c8t6 (bluepill) reading angle data
亚马逊测评自养号是什么,卖家应该怎么做?
Official tutorial redshift 01 basic theoretical knowledge and basic characteristics learning
数仓分层设计及数据同步问题,,220728,,,,
Unity beginner 1 - character movement control (2D)
[academic related] why can't many domestic scholars' AI papers be reproduced?
Alibaba political commissar system - Chapter 4: political commissars are built on companies
Simple calculator wechat applet project source code
What is Amazon self support number and what should sellers do?
Proteus simulation based on 51 MCU ADC0808