pnpm

11.6.0 • 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 runtime.
  • 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 OpenCollective OpenCollective X Follow Stand With Ukraine

Platinum Sponsors

Bit OpenAI

Gold Sponsors

Sanity Discord Vite
SerpApi CodeRabbit Stackblitz
Workleap Nx

Silver Sponsors

Replit Cybozu BairesDev
devowl.io u|screen Leniolabs_
Depot Cerbos ⏱️ Time.now

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.94,483,285latest-9
9.15.94,483,285next-9
11.6.0
1,602,436latest
11.6.0
1,602,436latest-11
11.6.0
1,602,436next-11
10.34.3965,456latest-10
10.34.3965,456next-10
8.15.9896,750latest-8
8.15.9896,750next-8
7.33.7189,763next-7
7.33.512,093latest-7
6.35.16,633latest-6
6.35.16,633next-6
5.18.102,832latest-5
3.8.1866latest-3
4.14.4364latest-4
6.23.7-20211204163414dev
0.0.0-pr4475.11pr4475

Version History

VersionDownloads (Last 7 Days)Published
11.6.0
1,602,436
10.34.3965,456
10.34.21,004,781
11.5.3
2,359,141
11.5.2
7,700,003
11.5.1
1,882,920
11.5.0
1,283,745
10.34.13,800,782
10.34.0115,971
11.4.0
1,022,298
11.3.0
1,776,121
11.2.2
2,362,573
11.2.1
80,043
11.2.0
22,194
11.1.3
1,369,660
11.1.2
1,878,121
11.1.1
9,390,176
11.1.0
459,700
11.0.9
599,362
11.0.8
665,027
11.0.7
79,702
10.33.4
3,570,474
11.0.6
135,885
10.33.3
568,801
11.0.5
23,875
11.0.4
261,420
11.0.3
93,191
11.0.2
60,588
11.0.1
74,839
11.0.0
213,221
10.33.2
2,949,209
10.33.1
533,372
11.0.0-rc.5
524,518
11.0.0-rc.4
1,311
11.0.0-rc.368
11.0.0-rc.2
238
11.0.0-rc.1
13,355
11.0.0-rc.0
10,637
11.0.0-beta.8
4
11.0.0-beta.7
5
11.0.0-beta.6
25
11.0.0-beta.5
2
11.0.0-beta.4-1
27,748
11.0.0-beta.4-0
4
11.0.0-beta.4
6
11.0.0-beta.3
32
10.33.0
8,719,242
11.0.0-beta.2
266
11.0.0-beta.1
4
11.0.0-beta.0
34
11.0.0-alpha.16
156
11.0.0-alpha.15
3
10.32.1
2,605,522
11.0.0-alpha.14
12
10.32.0
393,911
10.31.0
381,585
11.0.0-alpha.1312
11.0.0-alpha.12136
10.30.3
1,341,903
11.0.0-alpha.116
10.30.2
568,302
11.0.0-alpha.1011
11.0.0-alpha.95
11.0.0-alpha.83
11.0.0-alpha.73
11.0.0-alpha.63
10.30.1
449,499
10.30.0
577,745
11.0.0-alpha.5
54
11.0.0-alpha.4
2
10.29.3
1,452,540
10.29.2
769,085
10.29.1
107,926
10.28.2
1,812,434
10.28.1
889,974
11.0.0-alpha.3
317
10.28.0
1,103,326
10.27.0
1,630,303
10.26.2
377,390
10.26.1
510,555
11.0.0-alpha.2
33
10.26.0
700,591
10.25.0
742,420
10.24.0
953,417
10.23.0
827,482
11.0.0-dev.1005
1,173
11.0.0-dev.1003
3
11.0.0-dev.1002
2
11.0.0-dev.1001
1
11.0.0-alpha.1
39
11.0.0-alpha.0
5
10.22.0
533,208
10.21.0
191,946
10.20.0
1,068,698
10.19.1-oidc-test.3
316
10.19.1-oidc-test.2
9
10.19.1-oidc-test.02
10.19.0514,246
10.18.3459,141
10.18.2212,032
10.18.1503,045
10.18.0501,950
10.17.1846,930
10.17.0310,489
10.16.1354,735
10.16.0216,853
10.15.1564,969
10.15.0555,211
10.14.0931,008
10.14.0-02,761
10.13.1669,525
10.13.06,753
10.12.4401,380
10.12.3101,948
10.12.261,637
10.12.1796,787
10.11.1290,108
10.11.0810,577
10.10.0641,851
10.9.0364,756
10.8.1207,059
10.8.0182,992
10.7.1179,282
10.7.0124,341
10.6.5224,813
10.6.443,061
10.6.370,687
9.15.94,483,285
10.6.2210,506
9.15.82,223
10.6.157,112
10.6.053,007
9.15.710,802
10.5.2179,579
10.5.123,498
10.5.024,450
9.15.630,939
10.4.11,234,619
10.4.056,607
10.3.052,241
10.2.170,747
10.2.0180,403
9.15.5300,812
10.1.047,634
9.15.42,012,674
10.0.0639,917
9.15.3108,409
10.0.0-rc.32
10.0.0-rc.26,505
9.15.2145,526
10.0.0-rc.130
9.15.1217,710
10.0.0-rc.0788
10.0.0-beta.310
10.0.0-beta.212
9.15.03,015,771
10.0.0-beta.1113
9.14.4202,193
9.14.310,537
10.0.0-beta.02
10.0.0-alpha.4623
10.0.0-alpha.31
9.14.2347,136
9.14.12,493
9.14.015,670
10.0.0-alpha.247
10.0.0-alpha.11
9.13.256,540
9.13.17,556
9.13.025,245
10.0.0-alpha.072
9.12.3528,403
9.12.2160,792
9.12.1114,860
9.12.01,279,397
9.11.096,616
9.10.0127,291
9.9.0130,531
9.8.029,678
9.7.171,657
9.7.083,034
9.6.0329,038
8.15.9896,750
9.5.0182,658
9.5.0-beta.35
9.5.0-beta.21
9.5.0-beta.12
9.5.0-beta.0372
9.4.0207,340
9.3.0135,937
9.2.050,053
9.1.452,607
9.1.318,414
9.1.259,029
9.1.164,523
9.1.0153,244
8.15.885,601
9.1.0-07
9.0.663,329
9.0.537,937
9.0.423,584
9.0.31,581
9.0.212,393
9.0.17,268
9.0.01,202,913
9.0.0-rc.22
9.0.0-rc.15
8.15.767,950
9.0.0-rc.03
9.0.0-beta.34
8.15.674,687
9.0.0-beta.23
9.0.0-beta.11
9.0.0-beta.02
9.0.0-alpha.10115
9.0.0-alpha.91
9.0.0-alpha.8258
8.15.5115,142
9.0.0-alpha.72
9.0.0-alpha.61
8.15.487,850
9.0.0-alpha.53
7.33.7189,763
8.15.334,987
8.15.24,026
9.0.0-alpha.416
9.0.0-alpha.31
8.15.167,018
9.0.0-alpha.12
8.14.333,265
8.14.27,134
8.14.118,812
9.0.0-alpha.08
8.14.018,042
8.13.1110,126
8.13.0489
8.12.111,831
8.12.013,990
8.11.040,774
8.10.527,983
8.10.41,587
8.10.3901
8.10.240,834
8.10.1504
8.10.020,886
8.10.0-03
8.9.217,999
8.9.12,082
8.9.0124,461
8.9.0-14
8.9.0-05
8.8.015,743
8.7.639,075
8.7.56,850
8.7.46,424
8.7.340
8.7.2405
8.7.14,879
8.7.07,952
8.7.0-22
8.7.0-12
8.6.12141,609
7.33.620,352
8.6.114,675
8.6.1029,158
7.33.512,093
8.6.94,110
7.33.4546
8.6.814,575
8.6.730,851
8.6.62,789
7.33.3172
8.6.56,861
8.6.41,172
7.33.25,058
8.6.36,688
7.33.1131
8.6.29,213
7.32.52,948
8.5.119,538
7.32.47,115
8.5.04,258
7.32.33,282
8.4.09,274
7.32.23,971
8.3.122,290
7.32.11,884
8.3.0340
8.3.0-05
7.32.0348
8.2.02,737
7.31.0234
8.1.111,855
7.31.0-03
8.1.01,851
8.0.04,240
7.30.510,958
7.30.47
8.0.0-rc.13
8.0.0-rc.02
7.30.3313
7.30.3-02
7.30.24
7.30.157
8.0.0-beta.13
7.30.02,089
7.30.0-04
7.29.3606
7.29.11,872
8.0.0-beta.021
7.29.0312
7.29.0-23
7.29.0-12
7.28.01,063
8.0.0-alpha.03
7.28.0-02
7.27.1557
7.27.02,357
7.27.0-012
7.26.3589
7.26.22,185
7.26.1182
7.26.0705
7.25.11,141
7.25.01,282
7.24.3895
7.24.2151
7.24.17
7.24.011
7.23.0657
7.22.0746
7.21.0926
7.20.0241
7.19.0176
7.18.21,387
7.18.1578
7.18.0369
7.17.1296
7.17.0756
7.16.1149
7.16.0505
6.35.16,633
7.15.018,149
7.14.2592
7.14.1656
7.14.01,184
6.35.019
7.13.6133
7.13.5561
7.13.4975
7.13.3204
7.13.2138
7.13.148
7.13.0410
7.12.2673
7.12.12,015
7.12.0-05
7.11.1-02
7.11.02,930
7.10.0310
7.10.0-14
7.10.0-08
7.9.5870
7.9.434
7.9.4-03
7.9.3444
7.9.238
7.9.145
7.9.01,220
7.9.0-03
6.34.0426
7.8.01,834
7.7.141
7.7.033
7.7.0-14
7.7.0-05
7.6.01,646
7.6.0-04
6.33.1325
7.5.2592
7.5.1217
6.33.012
7.5.01,666
6.32.25169
7.4.131
7.4.0876
7.4.0-45
7.4.0-34
7.4.0-24
7.4.0-125
7.4.0-06
6.32.2422
6.32.236
7.3.01,592
0.0.0-pr4475.23
6.32.22101
7.2.1872
6.32.20154
7.1.9204
7.1.850
7.1.7263
6.32.1957
6.32.1810
7.1.657
7.1.5180
7.1.43
6.32.1721
7.1.367
6.32.166
7.1.269
6.32.15100
6.32.1412
7.1.127
6.32.13649
0.0.0-pr4475.11
7.1.01,099
6.32.12247
7.0.1273
7.0.01,436
7.0.0-rc.96
6.32.11757
6.32.1056
7.0.0-rc.82
7.0.0-rc.72
6.32.92,095
7.0.0-rc.62
6.32.839
7.0.0-rc.52
7.0.0-rc.41
6.32.712
6.32.6188
7.0.0-rc.31
6.32.54
7.0.0-rc.25
7.0.0-rc.13
7.0.0-pr4475.14
6.32.4184
7.0.0-rc.02
7.0.0-pr4475.02
7.0.0-beta.21
7.0.0-beta.11
7.0.0-beta.01
7.0.0-alpha.41
6.32.31,060
6.32.2139
6.32.143
7.0.0-alpha.31
6.32.076
7.0.0-alpha.21
7.0.0-alpha.117
6.31.045
6.30.151
6.30.01,177
6.29.24
7.0.0-alpha.02
6.29.1125
6.29.03
6.28.099
6.27.22
6.27.1378
6.27.051
6.26.157
6.26.09
6.25.1158
6.25.013
6.25.0-32
6.25.0-24
6.25.0-12
6.25.0-02
6.24.463
6.24.316
6.24.245
6.24.163
6.24.077
6.24.0-12
6.24.0-02
6.23.7-20211204163414
6.23.6220
6.23.125
6.23.0150
6.22.269
6.19.135
6.19.03
6.18.05
6.17.213
6.17.111
6.17.0118
6.16.1131
6.16.047
6.15.2166
6.15.1461
6.15.042
6.14.750
6.14.612
6.14.525
6.14.412
6.14.34
6.14.222
6.14.114
5.18.102,832
6.14.018
6.14.0-33
6.14.0-02
6.13.0496
6.13.0-03
6.12.111
6.12.09
6.12.0-23
6.12.0-02
6.11.513
6.11.0-02
6.10.3111
6.10.25
6.10.15
6.10.0424
6.10.0-12
6.10.0-02
6.9.122
6.9.03
6.8.09
6.7.6127
6.7.53
6.7.416
6.7.36
6.7.28
6.7.112,142
6.7.013
6.6.21,104
6.6.2-202105302
6.6.15
6.6.04
6.5.07
6.5.0-12
6.5.0-02
6.4.012
6.3.0140
6.2.525
6.2.44
6.2.35
6.2.2-202104262
6.2.148
6.1.0-2021042300412
6.1.08
6.0.2161
6.0.2-202104112
6.0.137
6.0.0-rc.11
6.0.0-rc.01
6.0.0-beta.11
6.0.0-beta.01
5.18.9322
6.0.0-alpha.61
5.18.810
6.0.0-alpha.51
5.18.710
6.0.0-alpha.41
5.18.65
5.18.514
5.18.45
6.0.0-alpha.31
5.18.35
5.18.25
6.0.0-202102284
6.0.0-alpha.22
6.0.0-alpha.11
5.18.1283
5.18.012
6.0.0-alpha.01
5.17.369
5.17.25
5.17.114
5.17.05
5.16.12
5.16.048
5.16.0-22
5.16.0-12
5.16.0-02
5.15.34
5.15.270
5.15.1602
5.15.0157
5.14.3643
5.14.22
5.14.18
5.14.07
5.13.75,011
5.13.670
5.13.51,119
5.13.46
5.13.33
5.13.299
5.13.111
5.13.07
5.12.06
5.11.1135
5.11.015
0.0.0-202010605113
0.0.0-202010301243
5.10.418
5.10.32
5.10.227
5.10.17
5.10.04
5.10.0-02
5.9.328
5.9.214
5.9.12
5.9.011
0.0.0-202094124371
5.9.0-22
5.9.0-14
5.9.0-03
5.8.0823
5.8.0-02
0.0.0-20208212332231
5.7.06
5.7.0-02
5.6.17
5.6.0-02
5.5.129
5.5.116
5.5.1077
5.5.95
5.5.84
0.0.0-202082859471
5.5.72
5.5.66
0.0.0-20208115271
5.5.53
5.5.47
5.5.34
5.5.232
5.5.12
5.5.06
5.0.0-13
5.0.0-04
5.4.1238
5.4.1118
5.4.102
5.4.911
5.4.810
5.4.73
5.4.68
5.4.52
5.4.43
5.4.32
5.4.22
5.4.14
5.4.017
5.3.0154
5.2.93
5.2.85
5.2.76
5.2.66
5.2.54
5.2.44
0.0.0-20205202245513
5.2.32
5.2.25
5.2.15
5.2.04
5.2.0-02
5.1.86
5.1.711
5.1.63
5.1.56
5.1.4134
5.1.38
5.1.24
5.1.14
5.1.05
5.0.23
5.0.12
5.0.012
5.0.0-rc.51
5.0.0-rc.41
5.0.0-rc.31
5.0.0-rc.21
5.0.0-rc.11
5.0.0-rc.02
4.14.4364
5.0.0-alpha.71
4.14.32
5.0.0-alpha.61
5.0.0-alpha.52
5.0.0-alpha.41
5.0.0-alpha.31
4.14.218
5.0.0-alpha.21
5.0.0-alpha.11
5.0.0-alpha.01
4.14.13
4.14.049
4.14.0-22
4.14.0-12
4.14.0-02
4.13.030
4.13.0-13
4.13.0-03
4.12.561
4.12.45
4.12.22
4.12.19
4.12.041
4.12.0-12
4.12.0-02
4.11.62,212
4.11.56
4.11.43
4.11.32
4.11.24
4.11.194
4.11.03
4.11.0-02
4.10.03
4.10.0-32
4.10.0-23
4.10.0-13
4.10.0-02
4.9.32
4.9.26
4.9.16
4.9.013
4.9.0-42
4.9.0-32
4.9.0-22
4.9.0-12
4.9.0-02
4.8.062
4.8.0-12
4.8.0-02
4.7.214
4.7.13
4.7.03
4.7.0-14
4.7.0-02
4.6.080
4.6.0-12
4.6.0-02
4.5.010,748
4.5.0-63
4.5.0-53
4.5.0-33
4.5.0-23
4.5.0-12
4.5.0-02
4.4.04
4.4.0-22
4.4.0-12
4.4.0-02
4.3.319
4.3.22
4.3.12
4.3.015
4.3.0-02
4.2.22
4.2.13
4.2.06
4.1.83
4.2.0-03
4.1.74
4.1.67
4.1.53
4.1.45
4.1.38
4.1.23
4.1.15
4.1.04
4.0.28
4.0.13
4.0.03
4.0.0-82
4.0.0-72
4.0.0-62
4.0.0-53
4.0.0-43
4.0.0-32
4.0.0-22
4.0.0-12
4.0.0-02
3.8.1866
3.8.05
3.8.0-13
3.8.0-03
3.7.514
3.7.43
3.7.39
3.7.27
3.7.14
3.7.013
3.7.0-52
3.7.0-42
3.7.0-32
3.6.56
3.6.44
3.6.32
3.7.0-22
3.7.0-12
3.7.0-02
3.6.279
3.6.116
3.6.027
3.6.0-03
3.5.716
3.5.62
3.5.53
3.5.40
3.5.327
3.5.23
3.5.15
3.5.010
3.5.0-32
3.5.0-23
3.5.0-12
3.5.0-02
3.4.1386
3.4.09
3.4.0-02
3.3.43
3.3.327
3.3.24
3.3.18
3.3.02
3.3.0-22
3.3.0-13
3.3.0-02
3.2.058
3.2.0-13
3.2.0-02
3.1.135
3.1.1-02
3.1.029
3.1.0-12
3.1.0-02
3.0.116
3.0.023
3.0.0-beta.21
3.0.0-beta.11
3.0.0-beta.01
3.0.0-alpha.31
3.0.0-alpha.21
3.0.0-alpha.11
3.0.0-alpha.01
2.24.0-03
2.23.0-03
2.22.0-03
2.19.0-22
2.19.0-12
2.19.0-02
2.17.0-52
2.17.0-42
2.17.0-32
2.17.0-22
2.17.0-12
2.17.0-03
2.14.0-12
2.14.0-02
2.12.0-13
2.12.0-03
2.0.0-rc.02
1.27.0-18
1.24.0-39
1.24.0-28
1.24.0-18
1.24.0-08
2.0.0-beta.07
0.70.0-beta.27
0.70.0-beta.16
0.69.0-beta.46
0.69.0-beta.37
0.69.0-beta.27
0.69.0-beta.17