当前位置:网站首页>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
边栏推荐
猜你喜欢

Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform

Wang Xuegang - compiled shipment line file

Redisson报异常attempt to unlock lock, not locked by current thread by node id解决方案

如何开启mysql慢查询日志?

How Engineers Treat Open Source --- A veteran engineer's heartfelt words

原型模式
What is NoSQL?Databases for the cloud-scale future

PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案

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

按键控制流水灯(计时器)
随机推荐
那些年我们踩过的 Flink 坑系列
QT web 开发 - 笔记 - 3
The custom table form
unity pdg 设置隐藏不需要的节点以及实现自动勾选自动加载项
MySQL优化之慢日志查询
Biotin-EDA|CAS:111790-37-5| Ethylenediamine biotin
近期在SLAM建图和定位方面的进展
Flink 程序剖析
Spark 系统性学习笔记系列
Redisson报异常attempt to unlock lock, not locked by current thread by node id解决方案
mysqldump --set-gtid-purged=OFF
prometheus monitoring mysql_galera cluster
数据表格化打印输出
Flink 监控指南 被动拉取 Rest API
[ansible]playbook结合项目解释执行步骤
7.联合索引(最左前缀原则)
传递泛型给JSX元素
Wang Xuegang - compiled shipment line file
PostgreSQL learning summary (11) - PostgreSQL commonly used high-availability cluster solutions
WebRTC系列-SDP之编码信息收集