WindowsmacOSLinux

Where Is the pnpm Content-Addressable Store?

pnpm content-addressable store location on Windows, macOS and Linux, and the command that reveals the live path.

Last updated

pnpm keeps one global content-addressable store and hard-links packages into each project. The store is why pnpm installs are fast and why disk usage looks odd.

Defaults vary by OS, and store-dir settings override them. The pnpm store path command is authoritative, so run it before trusting any documented default.

Where pnpm stores this, by platform

Windows
%LOCALAPPDATA%\pnpm\store

Default only. Run pnpm store path to confirm, since .npmrc store-dir settings override it. Prune with pnpm store prune instead of deleting by hand.

macOS
~/Library/pnpm/store

Default only. Confirm with pnpm store path.

Linux
~/.local/share/pnpm/store

Default only. Confirm with pnpm store path. Custom XDG_DATA_HOME values move it.

Frequently asked questions

How do I check my actual pnpm store path?

Run pnpm store path. It prints the effective directory, which reflects store-dir overrides from .npmrc files and environment variables.

How do I free space used by the pnpm store?

Run pnpm store prune. It removes unreferenced packages while keeping everything your projects need. Deleting the folder by hand works too but forces full refetches.

Notice an outdated path? Let us know.