当前位置:网站首页>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
边栏推荐
- sql判断语句的编写
- Alibaba political commissar system - Chapter 4: political commissars are built on companies
- TCP——滑动窗口
- 【NOI模拟赛】计算几何(凸包,暴力,并查集)
- Charging pile charging technology new energy charging pile development
- Redshift 2.6.41 for maya2018 watermark removal
- torch.nn.functional.one_ hot()
- Phy6252 is an ultra-low power Bluetooth wireless communication chip for the Internet of things
- Some tools, plug-ins and software links are shared with you~
- Implementation of simple cubecap+fresnel shader in unity
猜你喜欢
![[beauty of software engineering - column notes] 21 | architecture design: can ordinary programmers also implement complex systems?](/img/db/ef33a111bcb543f9704706049bccc2.png)
[beauty of software engineering - column notes] 21 | architecture design: can ordinary programmers also implement complex systems?

阿里巴巴政委体系-第四章、政委建在连队上

Unity beginner 3 - enemy movement control and setting of blood loss area (2D)

Alibaba political commissar system - Chapter 4: political commissars are built on companies
![[beauty of software engineering - column notes] 26 | continuous delivery: how to release new versions to the production environment at any time?](/img/65/79f876b62fa3db421e5038a2445b83.png)
[beauty of software engineering - column notes] 26 | continuous delivery: how to release new versions to the production environment at any time?

Cs5340 domestic alternative dp5340 multi bit audio a/d converter

Lora opens a new era of Internet of things -asr6500s, asr6501/6502, asr6505, asr6601

Official tutorial redshift 01 basic theoretical knowledge and basic characteristics learning

Windows 安装 MySQL 5.7详细步骤

Simplefoc+platformio stepping on the path of the pit
随机推荐
Very practical shell and shellcheck
Nrf52832-qfaa Bluetooth wireless chip
Four pin OLED display based on stm32
Redshift 2.6.41 for maya2018 watermark removal
[beauty of software engineering - column notes] 27 | what is the core competitiveness of software engineers? (top)
Implementation of simple cubecap+fresnel shader in unity
Domestic application of ft232 replacing gp232rl usb-rs232 converter chip
产品推广的渠道和策略,化妆品品牌推广方法及步骤
Detailed explanation of two modes of FTP
随机抽奖转盘微信小程序项目源码
Solve the problem that the disk is full due to large files
Cv520 domestic replacement of ci521 13.56MHz contactless reader chip
Product promotion channels and strategies, cosmetics brand promotion methods and steps
Convert source package to RPM package
Process and concept of process
Unity beginner 2 - tile making and world interaction (2D)
Privacy is more secure in the era of digital RMB
MySQL rownum implementation
Security baseline of network security
CentOS deploy PostgreSQL 13