Developer Caches npm Cache
~/.npm/_cacache stores npm’s local content cache so package downloads can be reused faster during Node.js and JavaScript development.
What is Developer Caches npm Cache?
~/.npm/_cacache is the npm content cache used by the Node.js package manager on macOS. It stores downloaded package data so npm can reuse it instead of fetching the same files again every time you install dependencies, run builds, or switch between JavaScript and TypeScript projects. Developers commonly encounter this folder when cleaning disk space, troubleshooting package installs, or resetting local development tools. Removing it does not delete your project source code or installed global tools directly, but npm will need to download package content again the next time it is needed. The folder is most useful for active development workflows that regularly install or update packages.
Review files before deleting with diCleaner
Inspect caches, support files, folders, and related data before deleting items on Mac.
Safety overview
Status: Safe
This folder is generally safe to remove if you want to reclaim space or clear npm’s cached package data. The main effect is that future npm installs may be slower at first because package files must be downloaded again, and a damaged cache reset can sometimes help fix install problems. Delete it only when npm is not actively running.
Recommendation: Keep this cache if you actively use npm and want faster package installs. Remove it when you need disk space or want to reset cached package data, knowing npm will rebuild the cache automatically during later installs.
File path
~/.npm/_cacache
Share your experience
Be the first to share your experience.