Reference / Developer artifacts
Is it safe to delete ~/.npm/_cacache on a Mac?
Safe to delete
It re-downloads on demand the next time it's needed.
~/.npm/_cacache
What it is
npm download cache — repopulated on demand
If you delete it
First install in any project after this redownloads packages from npm
How to get it back
(automatic on next npm install)Recovery time
about a minute
Category
Developer artifacts
Don't guess — let diskspace check it live.
It pressure-tests the path against your live disk state and stages it reversibly, so you never lose anything you needed.
$ brew install tymrtn/diskspace/diskspace
$ diskspace explain ~/.npm/_cacache # verdict + live pressure-test