当前位置:网站首页>pnpm: Introduction
pnpm: Introduction
2022-08-02 08:37:00 【m0_67401499】
I. Concept
performant npm , which means "performant npm".pnpm is derived from npm/yarn, which solves potential bugs in npm/yarn, greatly optimizes performance, and expands usage scenarios.Known as "the most advanced package management tool"
Second, Features:
Fast speed, save disk space, support monorepo, high security
Compared with yarn/npm, the two commonly used package management tools, pnpm has also greatly improved in performance. According to the current official benchmark data, it can be seen that it is faster than npm/yarn in some comprehensive scenarios.double.
Three, storage management:
Address by content, use symlink
Fourth, dependency management:
npm1, npm2 adopt recursive management, npm3, npm3+, yarn dependency flat management eliminates dependency promotion.
pnpm Dependency Strategy: Eliminate Dependency Promotion, Standardize Topology
V. Safety
When using npm/yarn before, due to the flat structure of node_module, if A depends on B and B depends on C, then A can directly use C, but the problem is that A does not declare C as a dependency.Therefore, this kind of illegal access occurs.However, pnpm has created a set of dependency management methods, which solves this problem well and ensures security.
Six. Installation:
npm i pnpm -g
7. View version information:
Eighth, upgrade version
pnpm add -g pnpm to update
Nine, set the source:
pnpm config get registry //View source
pnpm config set registry https://registry.npmmirror.com //Switch Taobao source
X. Installation project dependencies
pnpm install
Eleven. Running the project
pnpm run dev
Twelve, reference links:
Fast, disk space efficient package manager | pnpm official website
pnpm brief introduction_A small cabbage~'s blog-CSDN blog_pnpm
pnpm tutorial_Xiao Shen Yue's blog - CSDN blog _pnpm use
Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- C语言基础_共用体
- prometheus monitoring mysql_galera cluster
- JSP中page指令的import命令具有什么功能呢?
- MySQL优化:从十几秒优化到三百毫秒
- Redis分布式锁入门
- Redisson distributed lock source code analysis for high-level use of redis
- etcd implements large-scale service governance application combat
- 离线部署通过tiup 配置好topology.yaml文件指定PD TV TIDBserver 是不是会自动在其他机器创建好对应得模块?
- 原型模式
- 52.【bool类型输入任何非0数值不为1的版本原因】
猜你喜欢
MFC最详细入门教程[转载]
Biotin-EDA|CAS:111790-37-5| Ethylenediamine biotin
Mysql Mac版下载安装教程
A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?
ip地址那点事(二)
Application and case analysis of CASA model and CENTURY model
Shell becomes canonical and variable
多版本node的安装与切换详细操作
第3周学习:ResNet+ResNeXt
IO进程线程->进程->day4
随机推荐
Mysql Mac版下载安装教程
原型模式
R language plotly visualization: use the plotly visualization model to predict the true positive rate (True positive) TPR and false positive rate (False positive) FPR curve under different thresholds
Biotin hydrazide HCl|CAS:66640-86-6|Biotin-hydrazide hydrochloride
Seleniu screenshots code and assign name to the picture
uni.navigateBack 中的坑
Seleniu截图代码以及给图片赋值名字
普林斯顿微积分读本03第二章--编程实现函数图像绘制、三角学回顾
力扣:第 304 场周赛
Mysql各个大版本之间的区别
十大免费cms建站系统介绍推荐
血气方刚的年轻小伙竟去做家政小哥,是怎样成功逆袭转行的
7.联合索引(最左前缀原则)
IO进程线程->进程->day4
IO process thread -> process -> day4
按键控制流水灯(计时器)
@RequestParam使用
prometheus monitoring mysql_galera cluster
Ansible learning summary (11) - detailed explanation of forks and serial parameters of task parallel execution
Ansible 学习总结(11)—— task 并行执行之 forks 与 serial 参数详解