docs(README): less confusion in the Background section

This commit is contained in:
Zoltan Kochan
2017-07-04 11:57:00 +03:00
parent 8b03677dbe
commit 0b97623e15

View File

@@ -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