What is the .bun/install/cache folder on my Mac?

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

Short answer

This is Bun’s global install cache: every package version Bun has downloaded. Bun keeps it so installs are near-instant. It’s safe to clear; Bun keeps the folder and fills it again on the next bun install.

Location: ~/.bun/install/cache

What’s inside

  • Downloaded npm packages, unpacked
  • Package manifests
Our verdict: Safe. Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made.

The Bun way

bun pm cache rm

bun pm cache prints where the cache lives.

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 .bun/install/cache?

Safe: Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made. This is Bun’s global install cache: every package version Bun has downloaded. Bun keeps it so installs are near-instant. It’s safe to clear; Bun keeps the folder and fills it again on the next bun install.

Where is .bun/install/cache on my Mac?

~/.bun/install/cache. In Finder choose Go › Go to Folder and paste the path.

How big does .bun/install/cache get?

Usually 500 MB – 10 GB.

Keep reading