본문으로 건너뛰기
버전: Next

기능 비교

기능pnpmYarnnpmNotes
워크스페이스 지원
격리된 node_modulesDefault in pnpm.
호이스팅된 node_modulesDefault in npm.
Plug'n'PlayDefault 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 runIn Yarn, Plug'n'Play ensures dependencies are always up to date.
후크
Listing licensespnpm 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.