当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
2022-7-31 12点 程序爱生活 恒指底背离中,有1-2周反弹希望
shell中计算命令详解(expr、(())、 $[]、let、bc )
Biotin hydrazide HCl|CAS:66640-86-6|生物素-酰肼盐酸盐
nodejs 简介
近期在SLAM建图和定位方面的进展
爬虫——爬虫初识、requests模块
High imitation [Huawei consumer business official website] and wonderful animation analysis: practice embedding JS code in low-code platform
Flink 系统性学习笔记系列
Biotin-C6-amine|N-biotinyl-1,6-hexanediamine|CAS: 65953-56-2
5分钟搞懂MySQL - 行转列
17、生成长图,并上传至服务器
【电子电路】长按键拉低电平,适用在有休眠机制的MCU但是没有看门狗,一个按键多个功能场景下使用
数据表格化打印输出
[ansible] playbook explains the execution steps in combination with the project
[OC学习笔记]ARC与引用计数
@FeignClient configuration参数配置
小说里的编程 【连载之二十四】元宇宙里月亮弯弯
PyQt5(一) PyQt5安装及配置,从文件夹读取图片并显示,模拟生成素描图像








![[ansible]playbook结合项目解释执行步骤](/img/fe/82b8562075fef33490d5aae7e809f5.png)