pnpm

10.12.1 • Public • Published

简体中文 | 日本語 | 한국어 | Italiano | Português Brasileiro

pnpm

Fast, disk space efficient package manager:

  • Fast. Up to 2x faster than the alternatives (see benchmark).
  • Efficient. Files inside node_modules are linked from a single content-addressable storage.
  • Great for monorepos.
  • Strict. A package can access only dependencies that are specified in its package.json.
  • Deterministic. Has a lockfile called pnpm-lock.yaml.
  • Works as a Node.js version manager. See pnpm env use.
  • Works everywhere. Supports Windows, Linux, and macOS.
  • Battle-tested. Used in production by teams of all sizes since 2016.
  • See the full feature comparison with npm and Yarn.

To quote the Rush team:

Microsoft uses pnpm in Rush repos with hundreds of projects and hundreds of PRs per day, and we’ve found it to be very fast and reliable.

npm version Join the chat at Discord OpenCollective OpenCollective X Follow Stand With Ukraine

Platinum Sponsors

Bit Bit

Gold Sponsors

Discord CodeRabbit Workleap
Stackblitz Vite

Silver Sponsors

u|screen Leniolabs_ Depot
devowl.io Cerbos Vite

Support this project by becoming a sponsor.

Background

pnpm uses a content-addressable filesystem to store all files from all module directories on a disk. When using npm, if you have 100 projects using lodash, you will have 100 copies of lodash on disk. With pnpm, lodash will be stored in a content-addressable storage, so:

  1. If you depend on different versions of lodash, only the files that differ are added to the store. If lodash has 100 files, and a new version has a change only in one of those files, pnpm update will only add 1 new file to the storage.
  2. All the files are saved in a single place on the disk. When packages are installed, their files are linked from that single place consuming no additional disk space. Linking is performed using either hard-links or reflinks (copy-on-write).

As a result, you save gigabytes of space on your disk and you have a lot faster installations! If you'd like more details about the unique node_modules structure that pnpm creates and why it works fine with the Node.js ecosystem, read this small article: Flat node_modules is not the only way.

💖 Like this project? Let people know with a tweet

Installation

For installation options visit our website.

Usage

Just use pnpm in place of npm/Yarn. E.g., install dependencies via:

pnpm install

For more advanced usage, read pnpm CLI on our website, or run pnpm help.

Benchmark

pnpm is up to 2x faster than npm and Yarn classic. See all benchmarks here.

Benchmarks on an app with lots of dependencies:

Support

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
9.15.92,971,759latest-9
9.15.92,971,759next-9
10.12.12,943,639latest
10.12.12,943,639next-10
10.12.12,943,639latest-10
8.15.91,109,524latest-8
8.15.91,109,524next-8
7.33.7181,024next-7
7.33.526,343latest-7
6.35.118,609latest-6
6.35.118,609next-6
5.18.102,038latest-5
3.8.1817latest-3
4.14.4224latest-4
6.23.7-2021120416342dev
0.0.0-pr4475.11pr4475

Version History

VersionDownloads (Last 7 Days)Published
10.12.12,943,639
10.11.11,635,033
10.11.01,203,801
10.10.01,088,583
10.9.0348,754
10.8.1276,324
10.8.0181,574
10.7.1209,950
10.7.0263,346
10.6.5256,135
10.6.460,358
10.6.378,397
9.15.92,971,759
10.6.2172,323
9.15.88,803
10.6.132,576
10.6.021,817
9.15.719,787
10.5.2235,700
10.5.123,644
10.5.052,879
9.15.6109,018
10.4.1315,658
10.4.0233,951
10.3.0173,601
10.2.1152,998
10.2.0112,636
9.15.5371,950
10.1.050,726
9.15.4632,940
10.0.0219,498
9.15.3165,490
10.0.0-rc.313
10.0.0-rc.21,022
9.15.2106,437
10.0.0-rc.19
9.15.1167,337
10.0.0-rc.0535
10.0.0-beta.392
10.0.0-beta.21
9.15.0827,029
10.0.0-beta.140
9.14.4305,312
9.14.323,640
10.0.0-beta.04
10.0.0-alpha.4185
10.0.0-alpha.32
9.14.2224,842
9.14.16,171
9.14.04,105
10.0.0-alpha.241
10.0.0-alpha.11
9.13.2111,093
9.13.16,130
9.13.016,122
10.0.0-alpha.0108
9.12.3305,411
9.12.2221,707
9.12.1208,645
9.12.0155,736
9.11.0153,873
9.10.0155,752
9.9.0171,284
9.8.047,007
9.7.1169,454
9.7.074,853
9.6.0368,953
8.15.91,109,524
9.5.0319,569
9.5.0-beta.30
9.5.0-beta.20
9.5.0-beta.12
9.5.0-beta.0278
9.4.0287,395
9.3.0154,233
9.2.0114,733
9.1.459,356
9.1.322,890
9.1.238,968
9.1.199,663
9.1.052,193
8.15.8174,284
9.1.0-05
9.0.686,800
9.0.541,437
9.0.425,792
9.0.31,906
9.0.218,430
9.0.19,968
9.0.0109,810
9.0.0-rc.29
9.0.0-rc.12
8.15.7237,286
9.0.0-rc.02
9.0.0-beta.30
8.15.657,957
9.0.0-beta.21
9.0.0-beta.11
9.0.0-beta.00
9.0.0-alpha.1056
9.0.0-alpha.90
9.0.0-alpha.81,001
8.15.5163,120
9.0.0-alpha.70
9.0.0-alpha.60
8.15.4202,718
9.0.0-alpha.50
7.33.7181,024
8.15.375,888
8.15.213,739
9.0.0-alpha.418
9.0.0-alpha.30
8.15.161,508
9.0.0-alpha.17
8.14.355,432
8.14.21,096
8.14.115,767
9.0.0-alpha.00
8.14.071,662
8.13.147,325
8.13.0281
8.12.113,980
8.12.012,651
8.11.058,386
8.10.569,651
8.10.41,678
8.10.31,554
8.10.2106,912
8.10.1437
8.10.049,338
8.10.0-0443
8.9.241,507
8.9.15,531
8.9.078,002
8.9.0-19
8.9.0-02
8.8.056,706
8.7.622,303
8.7.525,790
8.7.423,560
8.7.339
8.7.2875
8.7.110,307
8.7.023,980
8.7.0-29
8.7.0-19
8.6.12115,510
7.33.638,068
8.6.1121,842
8.6.1073,974
7.33.526,343
8.6.960,363
7.33.44,701
8.6.822,841
8.6.756,626
8.6.64,999
7.33.3152
8.6.517,188
8.6.4452
7.33.24,172
8.6.35,165
7.33.1360
8.6.221,748
7.32.56,168
8.5.120,896
7.32.4101,703
8.5.07,124
7.32.34,697
8.4.011,362
7.32.23,030
8.3.121,268
7.32.197
8.3.02,971
8.3.0-02
7.32.0175
8.2.07,625
7.31.04,664
8.1.15,943
7.31.0-02
8.1.03,285
8.0.03,813
7.30.537,518
7.30.425
8.0.0-rc.12
8.0.0-rc.02
7.30.32,963
7.30.3-02
7.30.29
7.30.116
8.0.0-beta.10
7.30.04,505
7.30.0-02
7.29.3933
7.29.14,043
8.0.0-beta.00
7.29.0150
7.29.0-29
7.29.0-19
7.28.01,942
8.0.0-alpha.02
7.28.0-02
7.27.1703
7.27.032,930
7.27.0-03
7.26.315,106
7.26.2416
7.26.1121
7.26.02,519
7.25.1404
7.25.02,150
7.24.3724
7.24.2192
7.24.114
7.24.023
7.23.0820
7.22.0876
7.21.02,536
7.20.03,604
7.19.0114
7.18.21,605
7.18.13,803
7.18.0296
7.17.11,774
7.17.0473
7.16.1112
7.16.01,638
6.35.118,609
7.15.03,052
7.14.2367
7.14.1464
7.14.01,344
6.35.015
7.13.6513
7.13.5490
7.13.4687
7.13.318
7.13.271
7.13.129
7.13.0219
7.12.2299
7.12.1753
7.12.0-00
7.11.1-00
7.11.01,254
7.10.031
7.10.0-17
7.10.0-02
7.9.52,050
7.9.438
7.9.4-00
7.9.3255
7.9.29
7.9.138
7.9.0477
7.9.0-00
6.34.01,641
7.8.0615
7.7.110
7.7.018
7.7.0-17
7.7.0-00
7.6.01,352
7.6.0-00
6.33.1497
7.5.21,479
7.5.1198
6.33.012
7.5.01,121
6.32.25464
7.4.168
7.4.074
7.4.0-48
7.4.0-37
7.4.0-28
7.4.0-18
7.4.0-01
6.32.2455
6.32.239
7.3.01,722
0.0.0-pr4475.21
6.32.2295
7.2.1216
6.32.20126
7.1.91,547
7.1.827
7.1.7111
6.32.1922
6.32.1812
7.1.626
7.1.5322
7.1.47
6.32.1725
7.1.331
6.32.169
7.1.228
6.32.15113
6.32.1458
7.1.134
6.32.131,042
0.0.0-pr4475.11
7.1.04,143
6.32.1260
7.0.1537
7.0.01,588
7.0.0-rc.90
6.32.11936
6.32.10326
7.0.0-rc.80
7.0.0-rc.72
6.32.92,628
7.0.0-rc.61,384
6.32.870
7.0.0-rc.50
7.0.0-rc.40
6.32.731
6.32.6154
7.0.0-rc.30
6.32.58
7.0.0-rc.20
7.0.0-rc.10
7.0.0-pr4475.10
6.32.4304
7.0.0-rc.00
7.0.0-pr4475.00
7.0.0-beta.20
7.0.0-beta.10
7.0.0-beta.00
7.0.0-alpha.40
6.32.31,240
6.32.2132
6.32.119
7.0.0-alpha.30
6.32.015
7.0.0-alpha.20
7.0.0-alpha.10
6.31.07,931
6.30.136
6.30.04,832
6.29.27
7.0.0-alpha.00
6.29.12,261
6.29.09
6.28.094
6.27.224
6.27.1164
6.27.0112
6.26.131
6.26.042
6.25.1273
6.25.0199
6.25.0-37
6.25.0-29
6.25.0-17
6.25.0-00
6.24.473
6.24.345
6.24.242
6.24.1369
6.24.09
6.24.0-17
6.24.0-00
6.23.7-2021120416342
6.23.6578
6.23.1669
6.23.0104
6.22.2600
6.19.112
6.19.044
6.18.017
6.17.2278
6.17.115
6.17.0901
6.16.1163
6.16.0183
6.15.2352
6.15.12,761
6.15.025
6.14.75,655
6.14.69
6.14.5285
6.14.410
6.14.315
6.14.210
6.14.118
5.18.102,038
6.14.029
6.14.0-37
6.14.0-00
6.13.01,247
6.13.0-00
6.12.17
6.12.0421
6.12.0-27
6.12.0-00
6.11.592
6.11.0-00
6.10.3216
6.10.216
6.10.17
6.10.0394
6.10.0-17
6.10.0-02
6.9.1650
6.9.010
6.8.0370
6.7.651
6.7.57
6.7.429
6.7.37
6.7.213
6.7.12,223
6.7.09
6.6.21,896
6.6.2-202105302
6.6.18
6.6.07
6.5.020
6.5.0-17
6.5.0-00
6.4.0103
6.3.0761
6.2.531
6.2.411
6.2.313
6.2.2-202104262
6.2.164
6.1.0-2021042300410
6.1.056
6.0.22,838
6.0.2-202104110
6.0.133
6.0.0-rc.10
6.0.0-rc.02
6.0.0-beta.10
6.0.0-beta.00
5.18.9990
6.0.0-alpha.60
5.18.810
6.0.0-alpha.50
5.18.7112
6.0.0-alpha.42
5.18.613
5.18.59
5.18.435
6.0.0-alpha.30
5.18.39
5.18.211
6.0.0-202102282
6.0.0-alpha.20
6.0.0-alpha.10
5.18.11,325
5.18.050
6.0.0-alpha.00
5.17.3588
5.17.2351
5.17.1692
5.17.09
5.16.1343
5.16.027
5.16.0-27
5.16.0-19
5.16.0-00
5.15.37
5.15.2131
5.15.1163
5.15.0319
5.14.3510
5.14.28
5.14.110
5.14.025
5.13.74,015
5.13.617
5.13.5468
5.13.421
5.13.37
5.13.210
5.13.1327
5.13.08
5.12.09
5.11.131
5.11.0140
0.0.0-202010605110
0.0.0-202010301241
5.10.4100
5.10.37
5.10.29
5.10.1120
5.10.07
5.10.0-00
5.9.311
5.9.216
5.9.17
5.9.049
0.0.0-202094124370
5.9.0-29
5.9.0-17
5.9.0-00
5.8.02,671
5.8.0-00
0.0.0-20208212332230
5.7.0505
5.7.0-00
5.6.123
5.6.0-00
5.5.129
5.5.1170
5.5.1039
5.5.916
5.5.87
0.0.0-202082859470
5.5.77
5.5.611
0.0.0-20208115270
5.5.58
5.5.413
5.5.361
5.5.2254
5.5.110
5.5.07
5.0.0-17
5.0.0-00
5.4.121,048
5.4.1130
5.4.107
5.4.924
5.4.87
5.4.77
5.4.615
5.4.59
5.4.47
5.4.39
5.4.27
5.4.17
5.4.0473
5.3.011
5.2.988
5.2.864
5.2.77
5.2.633
5.2.511
5.2.47
0.0.0-20205202245510
5.2.39
5.2.2117
5.2.194
5.2.07
5.2.0-00
5.1.89
5.1.710
5.1.647
5.1.5128
5.1.422
5.1.37
5.1.27
5.1.17
5.1.0135
5.0.29
5.0.19
5.0.0149
5.0.0-rc.50
5.0.0-rc.40
5.0.0-rc.30
5.0.0-rc.20
5.0.0-rc.10
5.0.0-rc.00
4.14.4224
5.0.0-alpha.70
4.14.37
5.0.0-alpha.60
5.0.0-alpha.50
5.0.0-alpha.40
5.0.0-alpha.30
4.14.271
5.0.0-alpha.20
5.0.0-alpha.10
5.0.0-alpha.00
4.14.114
4.14.07
4.14.0-27
4.14.0-17
4.14.0-00
4.13.066
4.13.0-17
4.13.0-00
4.12.511
4.12.47
4.12.210
4.12.17
4.12.07
4.12.0-17
4.12.0-00
4.11.61,874
4.11.59
4.11.47
4.11.37
4.11.27
4.11.135
4.11.07
4.11.0-00
4.10.07
4.10.0-37
4.10.0-27
4.10.0-17
4.10.0-00
4.9.381
4.9.29
4.9.18
4.9.012
4.9.0-47
4.9.0-37
4.9.0-27
4.9.0-17
4.9.0-00
4.8.07
4.8.0-17
4.8.0-02
4.7.27
4.7.1108
4.7.07
4.7.0-17
4.7.0-00
4.6.0121
4.6.0-17
4.6.0-00
4.5.08,934
4.5.0-67
4.5.0-57
4.5.0-37
4.5.0-27
4.5.0-17
4.5.0-00
4.4.030
4.4.0-27
4.4.0-17
4.4.0-00
4.3.37
4.3.215
4.3.17
4.3.07
4.3.0-02
4.2.27
4.2.17
4.2.068
4.1.837
4.2.0-00
4.1.769
4.1.659
4.1.5107
4.1.48
4.1.362
4.1.27
4.1.1171
4.1.08
4.0.2103
4.0.19
4.0.07
4.0.0-87
4.0.0-77
4.0.0-67
4.0.0-57
4.0.0-49
4.0.0-39
4.0.0-27
4.0.0-17
4.0.0-00
3.8.1817
3.8.07
3.8.0-17
3.8.0-00
3.7.58
3.7.47
3.7.39
3.7.238
3.7.17
3.7.0107
3.7.0-57
3.7.0-47
3.7.0-37
3.6.59
3.6.479
3.6.39
3.7.0-27
3.7.0-17
3.7.0-02
3.6.28
3.6.17
3.6.07
3.6.0-00
3.5.77
3.5.67
3.5.58
3.5.40
3.5.311
3.5.28
3.5.148
3.5.075
3.5.0-39
3.5.0-27
3.5.0-17
3.5.0-00
3.4.1613
3.4.08
3.4.0-00
3.3.49
3.3.3110
3.3.279
3.3.17
3.3.08
3.3.0-27
3.3.0-17
3.3.0-02
3.2.054
3.2.0-17
3.2.0-00
3.1.1116
3.1.1-00
3.1.016
3.1.0-17
3.1.0-00
3.0.170
3.0.08
3.0.0-beta.20
3.0.0-beta.10
3.0.0-beta.00
3.0.0-alpha.30
3.0.0-alpha.20
3.0.0-alpha.10
3.0.0-alpha.00
2.24.0-00
2.23.0-00
2.22.0-00
2.19.0-27
2.19.0-17
2.19.0-01
2.17.0-57
2.17.0-49
2.17.0-37
2.17.0-27
2.17.0-17
2.17.0-00
2.14.0-17
2.14.0-00
2.12.0-17
2.12.0-00
2.0.0-rc.00
1.27.0-17
1.24.0-37
1.24.0-28
1.24.0-17
1.24.0-00
2.0.0-beta.00
0.70.0-beta.20
0.70.0-beta.10
0.69.0-beta.40
0.69.0-beta.30
0.69.0-beta.20
0.69.0-beta.10

Package Sidebar

Install

npm i pnpm

Homepage

pnpm.io

Weekly Downloads

20,063,026

Version

10.12.1

License

MIT

Unpacked Size

19 MB

Total Files

1111

Last publish

Collaborators

  • zkochan
  • pnpmuser