Сравнение возможностей
Возможность | pnpm | Yarn | npm |
---|---|---|---|
Поддержка воркспейсов | ✔️ | ✔️ | ✔️ |
Изолированная node_modules | ✔️ - По умолчанию | ✔️ | ❌ |
Не иерархичность node_modules | ✔️ | ✔️ | ✔️ - По умолчанию |
Plug'n'Play | ✔️ | ✔️ - По умолчанию | ❌ |
Zero-Installs | ❌ | ✔️ | ❌ |
Patching dependencies | ❌ | ✔️ | ❌ |
Managing Node.js versions | ✔️ | ❌ | ❌ |
Has a lockfile | ✔️ - pnpm-lock.yaml | ✔️ - yarn.lock | ✔️ - package-lock.json |
Overrides support | ✔️ | ✔️ - Via resolutions | ✔️ |
Content-addressable storage | ✔️ | ❌ | ❌ |
Dynamic package execution | ✔️ - Via pnpm dlx | ✔️ - Via yarn dlx | ✔️ - Via npx |