What is the .npm/_cacache folder on my Mac?

It belongs to npm. Here’s what’s inside and the right way to deal with it.

Short answer

~/.npm/_cacache is npm’s download cache: a copy of every package version npm has fetched. It’s safe to clear; npm downloads packages again when needed. Use npm cache clean --force.

Skip the manual steps. Tidy Mac finds this and every other hidden space hog on your Mac in under a minute.

Location: ~/.npm/_cacache

What’s inside

  • Content-addressed package tarballs
  • Index
Our verdict: Safe. Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made.
npm cache clean --force

Find every folder like this on your Mac

Tidy Mac’s Space Map shows every big folder at its real size, and Apps › Leftovers finds folders left by apps you already deleted.

Frequently asked questions

Can I delete .npm/_cacache?

Safe: Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made. ~/.npm/_cacache is npm’s download cache: a copy of every package version npm has fetched. It’s safe to clear; npm downloads packages again when needed. Use npm cache clean --force.

Where is .npm/_cacache on my Mac?

~/.npm/_cacache. In Finder choose Go › Go to Folder and paste the path.

How big does .npm/_cacache get?

Usually 500 MB – 10 GB.

Keep reading