Перейти к основному содержимому
Версия: 7.x

Сравнение возможностей

ВозможностьpnpmYarnnpm
Поддержка воркспейсов✔️✔️✔️
Изолированная node_modules✔️ - По умолчанию✔️✔️
Не иерархичность node_modules✔️✔️✔️ - По умолчанию
Авто-установка peerDependencies✔️ - При помощи auto-install-peers=true❌✔️
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
Side-effects cache✔️❌❌
Listing licenses✔️ - Via pnpm licenses list✔️ - Via a plugin❌