230820笔记: About pnpm
Opened this issue · 0 comments
Geekiter commented
pnpm
-
Official website
-
Advantages
- Fast
- Efficient
- Files in node_modules are copied or linked from a specific content-addressable storage repository.
- Supports monorepos
-
Differences from npm and yarn
- npm3+ and yarn manage node_modules through a flattened way, which solves some problems of nested ways, but introduces the problem of ghost dependencies, and only one version of the same package will be promoted, and the rest of the versions will still be copied multiple times.
- pnpm hard links from the global store to node_modules/.pnpm, and then organizes the dependency relationship between them through soft links.