Is it safe to delete pnpm store?

~/Library/pnpm/store · Safe to delete

What it is

pnpm's content-addressed store. Projects link their packages from here instead of copying them.

Can you delete it?

Yes, it is rebuilt automatically. pnpm can remove packages no project uses any more. Packages are downloaded again if needed.

How to clean it safely

  1. See the size: du -sh ~/Library/pnpm/store
  2. Run: pnpm store prune
  3. Prefer prune over deleting the folder: projects hard-link into it.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/"Library/pnpm/store" 2>/dev/null

Step-by-step guide: Delete node_modules safely →

Questions

Is it safe to delete ~/Library/pnpm/store?

Yes, it is rebuilt automatically. pnpm can remove packages no project uses any more. Packages are downloaded again if needed.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac