当前位置:网站首页>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
边栏推荐
- Detailed explanation of two modes of FTP
- Dynamic thresholds buffer management in a shared buffer packet switch paper summary
- How to connect VMware virtual machine to external network under physical machine win10 system
- [beauty of software engineering - column notes] 25 | what methods can improve development efficiency?
- Research on autojs wechat: the final product of wechat automatic information sending robot (effective demonstration)
- BiSeNet v2
- torch.Tensor和torch.tensor的区别
- 简易计算器微信小程序项目源码
- DAC0832 waveform generator based on 51 single chip microcomputer
- Implementation of simple cubecap+fresnel shader in unity
猜你喜欢

Cyberpunk special effect shader
![[beauty of software engineering - column notes] 27 | what is the core competitiveness of software engineers? (top)](/img/23/288f6c946a44e36ab58eb0555f3650.png)
[beauty of software engineering - column notes] 27 | what is the core competitiveness of software engineers? (top)

Random lottery turntable wechat applet project source code
![[beauty of software engineering - column notes] 22 | how to do a good job in technology selection for the project?](/img/1a/72bfb3fef59c54188a823ead3a5390.png)
[beauty of software engineering - column notes] 22 | how to do a good job in technology selection for the project?

Simplefoc+platformio stepping on the path of the pit

Tle5012b+stm32f103c8t6 (bluepill) reading angle data

Redshift 2.6.41 for maya2018 watermark removal
![[robomaster] control RM motor from scratch (2) -can communication principle and electric regulation communication protocol](/img/7c/ba52c7bc11d165892d7390ad8ce298.png)
[robomaster] control RM motor from scratch (2) -can communication principle and electric regulation communication protocol

华为无线设备配置利用WDS技术部署WLAN业务

Convert source package to RPM package
随机推荐
How to connect VMware virtual machine to external network under physical machine win10 system
110道 MySQL面试题及答案 (持续更新)
Unicode私人使用区域(Private Use Areas)
The software package is set to - > Yum source
File system I
STM32 printf problem summary semihosting microlib understanding
Dynamic Thresholds Buffer Management in a Shared Buffer Packet Switch论文总结
[beauty of software engineering - column notes] 26 | continuous delivery: how to release new versions to the production environment at any time?
简易计算器微信小程序项目源码
Unity shader learning (VI) achieving radar scanning effect
Implementation of simple cubecap+fresnel shader in unity
[beauty of software engineering - column notes] 30 | make good use of source code management tools to make your collaboration more efficient
Random lottery turntable wechat applet project source code
The computer system has no standard tcp/ip port processing operations
产品推广的渠道和策略,化妆品品牌推广方法及步骤
Taiyuan bus route crawling
Unity beginner 3 - enemy movement control and setting of blood loss area (2D)
Windows 安装 MySQL 5.7详细步骤
Inclination sensor accuracy calibration test
Explanation and closing method of server 135, 137, 138, 139, 445 and other ports