Package caches · npm
Is it safe to delete npm cache?
~/.npm/_cacache
npm cache
~/.npm/_cacache
Copies of every package npm has downloaded, kept so installs run faster. Your projects don’t use these files directly.
- Comes back
- On next install
- Belongs to
- npm
- Confidence
- High
If you remove itnpm downloads packages again as you need them, so the next install is slower.
The short answer
High It rebuilds itself when needed, such as a cache or build data. It comes back by itself.
More package caches
- Yarn cache~/Library/Caches/YarnOn next installHigh
- pip cache~/Library/Caches/pipOn next installHigh
- Homebrew downloads~/Library/Caches/HomebrewOn next installHigh
- Swift packages~/Library/Caches/org.swift.swiftpmOn next resolveHigh
- CocoaPods cache~/Library/Caches/CocoaPodsOn next installHigh
- Go build cache~/Library/Caches/go-buildOn next buildHigh
From the rules Cachet uses, in the words the app shows.