当前位置:网站首页>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
边栏推荐
- PyCharm使用教程(较详细,图+文)
- 软件测试技术之解析图灵测试离我们还有多远
- 文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
- unity pdg 设置隐藏不需要的节点以及实现自动勾选自动加载项
- 小说里的编程 【连载之二十五】元宇宙里月亮弯弯
- Biotinyl Cystamine | CAS: 128915-82-2 | biotin cysteamine
- etcd implements large-scale service governance application combat
- Wang Xuegang - compiled shipment line file
- @RequestBody使用
- cas: 139504-50-0 Maytansine DM1|Mertansine|
猜你喜欢

PyQt5(一) PyQt5安装及配置,从文件夹读取图片并显示,模拟生成素描图像

解决IDEA安装安装插件慢问题

52.【bool类型输入任何非0数值不为1的版本原因】

Biotin-C6-amine|N-生物素基-1,6-己二胺|CAS:65953-56-2

第3周学习:ResNet+ResNeXt

Write a small game in C (three chess)

HCIP9_BGP增加实验

Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI

3D激光slam:LeGO-LOAM---地面点提取方法及代码分析

Biotin hydrazide HCl|CAS:66640-86-6|Biotin-hydrazide hydrochloride
随机推荐
Biotin hydrazide HCl|CAS:66640-86-6|Biotin-hydrazide hydrochloride
工程师如何对待开源 --- 一个老工程师的肺腑之言
小康股份更名赛力斯,如何走出一条高端产品的“丝绸之路”?
轴流式水轮机隐私政策
pycharm的基本使用教程(1)
IO进程线程->进程->day4
Redis分布式锁入门
redis的安装与应用
MySQL ODBC驱动简介
cas: 139504-50-0 Maytansine DM1|Mertansine|
三维体尺测量
[OC学习笔记]Block三种类型
Flink 监控指南 被动拉取 Rest API
[ansible]playbook结合项目解释执行步骤
PyCharm使用教程(详细版 - 图文结合)
redis高阶使用之Redisson分布式锁源码解析
数据表格化打印输出
如何开启mysql慢查询日志?
EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
离线部署通过tiup 配置好topology.yaml文件指定PD TV TIDBserver 是不是会自动在其他机器创建好对应得模块?