Apps
Bun Cache
Bun keeps a downloaded package cache in ~/.bun/install/cache so repeated bun install operations can reuse registry tarballs, extracted package contents, and metadata instead of fetching everything again. Over time this store accumulates old package versions, interrupted downloads, and cached artifacts for projects you no longer use. Kudu removes Bun’s install cache contents without touching your projects, lockfiles, global packages, accounts, or settings.
Why clean Bun Cache?
- A partially downloaded or truncated package tarball in Bun’s install cache can trigger checksum or extraction errors during bun install, which shows up as failed dependency installs for packages that previously worked
- Old cached versions of packages you no longer use keep consuming disk space in ~/.bun/install/cache, and users usually notice Bun taking several gigabytes even after deleting old projects
- Stale registry metadata or cached package artifacts can cause Bun to keep reusing an unexpected package build, leading to confusing cases where a clean install still behaves differently from CI or another machine
- Interrupted installs can leave broken cache entries behind, causing repeated retries, fetch failures, or installs that hang on the same dependency until the cache is cleared
- Corrupted extracted package contents in the cache can surface as missing files, postinstall script failures, or modules that cannot be resolved even though the package name appears in the lockfile
- Shared cache reuse across many projects means one bad cached artifact can break multiple bun install runs, so the symptom often appears as unrelated repositories failing on the same dependency
- Cleaning the cache forces Bun to redownload fresh package tarballs and metadata, which often fixes persistent install errors without deleting project source code, node_modules settings, or login credentials
What gets cleaned
Cache paths Kudu targets
Windows
~/.bun/install/cache |
macOS
~/.bun/install/cache |
Linux
~/.bun/install/cache |
Frequently asked
Common questions about Bun Cache
Related cleaners
Free & open source
Download Kudu and reclaim your disk space.
Available on Windows, macOS, and Linux. No account required, no feature gates, no telemetry without consent. All cleaning targets are open source and community-auditable.