pnpm store (~/Library/pnpm) on Mac: what it is and whether you can delete it

MACMAN FOLDER · 2026-11-16

Safe to delete now

What it is

Why it grows

pnpm keeps a single copy of the files for each package version in its store, and your projects share it. On a Mac this store usually sits under ~/Library/pnpm.

Package versions that no project uses any more stay in the store until you clean it up. The more projects you work through, the bigger it gets.

~/Library/Caches/pnpm holds caches such as package information pnpm has downloaded.

Before you delete

How to check its size

In Finder, choose Go > Go to Folder (Shift-Command-G), enter ~/Library/pnpm or ~/Library/Caches/pnpm, then use Get Info (Command-I) to see the size.

In Terminal, run du -sh ~/Library/pnpm ~/Library/Caches/pnpm to see the size.

The free MacMan Scan diagnosis lists this folder with its size and grade. The scan is read-only.

How to shrink it safely

  1. Enter pnpm store prune in Terminal. It deletes from the store only the packages no project currently uses.
  2. Do not delete the whole ~/Library/pnpm folder. Depending on how you installed pnpm, pnpm itself and your globally installed packages can live in it.
  3. You can move the contents of ~/Library/Caches/pnpm to the Trash. pnpm recreates it when needed.

How MacMan Scan handles this folder

Related folders

Get the free diagnosis

The scan is read-only. Diagnosis alone deletes nothing.