기능 비교
기능 | pnpm | Yarn | npm | Notes |
---|---|---|---|---|
워크스페이스 지원 | ✅ | ✅ | ✅ | |
격리된 node_modules | ✅ | ✅ | ✅ | Default in pnpm. |
호이스팅된 node_modules | ✅ | ✅ | ✅ | Default in npm. |
Plug'n'Play | ✅ | ✅ | ❌ | Default in Yarn. |
피어 자동 설치 | ✅ | ❌ | ✅ | |
Zero-Installs | ❌ | ✅ | ❌ | |
의존성 패치 | ✅ | ✅ | ❌ | |
Node.js 버전 관리 | ✅ | ❌ | ❌ | |
Managing versions of itself | ✅ | ✅ | ❌ | |
lockfile 보유 | ✅ | ✅ | ✅ | pnpm-lock.yaml , yarn.lock , package-lock.json . |
재정의 지원 | ✅ | ✅ | ✅ | Known as "resolutions" in Yarn. |
Content-addressable 저장소 | ✅ | ✅ | ❌ | Yarn uses a CAS when nodeLinker is set to pnpm . |
동적 패키지 실행 | ✅ | ✅ | ✅ | pnpm dlx , yarn dlx , npx . |
부작용 캐시 | ✅ | ❌ | ❌ | |
Catalogs | ✅ | ❌ | ❌ | |
Config dependencies | ✅ | ❌ | ❌ | |
JSR registry support | ✅ | ✅ | ❌ | |
Auto-install before script run | ✅ | ❌ | ❌ | In Yarn, Plug'n'Play ensures dependencies are always up to date. |
후크 | ✅ | ✅ | ❌ | |
Listing licenses | ✅ | ✅ | ❌ | pnpm supports it via pnpm licenses list . Yarn has a plugin for it. |
Note: To keep the comparison concise, we include only features likely to be used frequently.