mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-24 01:51:41 -04:00
docs(README): less confusion in the Background section
This commit is contained in:
@@ -41,9 +41,10 @@ always the same way, the way they are described in `package.json` files.
|
||||
## Background
|
||||
|
||||
pnpm uses hard links and symlinks to save one version of a module only ever once on a disk.
|
||||
When using npm or Yarn for example, if you have 100 packages using lodash, you will have
|
||||
100 copies of lodash on disk. With pnpm, lodash will be saved in a single place on the disk
|
||||
and a hard link will put it into the `node_modules` where it should be installed.
|
||||
When using npm or Yarn for example, if you have 100 projects using the same version
|
||||
of lodash, you will have 100 copies of lodash on disk. With pnpm, lodash will be saved in a
|
||||
single place on the disk and a hard link will put it into the `node_modules` where it should
|
||||
be installed.
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user