Reference / Developer artifacts
Is it safe to delete ~/.yarn/cache on a Mac?
Safe to delete
It re-downloads on demand the next time it's needed.
~/.yarn/cache
What it is
Yarn package cache — repopulated on next install
If you delete it
Next yarn install redownloads packages
How to get it back
yarn installRecovery 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 ~/.yarn/cache # verdict + live pressure-test