What is the Caches/Yarn · .yarn/berry/cache folder on my Mac?

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

Short answer

Yarn keeps a global cache of downloaded package archives so installs are fast and work offline. Yarn 1 stores it in ~/Library/Caches/Yarn, Yarn 2+ in ~/.yarn/berry/cache. It’s safe to clear; Yarn downloads packages again when a project needs them.

Location: ~/Library/Caches/Yarn · ~/.yarn/berry/cache

What’s inside

  • Zipped or unpacked package archives
  • Registry metadata
Our verdict: Safe. Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made.

The Yarn way

yarn cache clean

On Yarn 2 or later, add --all to also clear the shared global cache.

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 Caches/Yarn · .yarn/berry/cache?

Safe: Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made. Yarn keeps a global cache of downloaded package archives so installs are fast and work offline. Yarn 1 stores it in ~/Library/Caches/Yarn, Yarn 2+ in ~/.yarn/berry/cache. It’s safe to clear; Yarn downloads packages again when a project needs them.

Where is Caches/Yarn · .yarn/berry/cache on my Mac?

~/Library/Caches/Yarn · ~/.yarn/berry/cache. In Finder choose Go › Go to Folder and paste the path.

How big does Caches/Yarn · .yarn/berry/cache get?

Usually 500 MB – 15 GB.

Keep reading