Skip to main content
Version: 11 & 12

Feature Comparison

FeaturepnpmnpmNotes
Workspace support
Isolated node_modulesDefault in pnpm.
Hoisted node_modulesDefault in npm.
Plug'n'Play
Autoinstalling peers
Patching dependencies
Managing runtimes
Managing versions of itself
Has a lockfilepnpm-lock.yaml, package-lock.json.
Overrides support
Content-addressable storage
Dynamic package executionpnx, npx.
Side-effects cache
Catalogs
Config dependencies
JSR registry support
Auto-install before script run
Hooks
Build script security
SBOM generationpnpm sbom, npm sbom.
Listing licensespnpm supports it via pnpm licenses list.

Note: To keep the comparison concise, we include only features likely to be used frequently.