Bottom Line: It is 100% safe to clear the Bun package cache. Bun caches npm package tarballs locally to speed up future bun install commands.
What is the Bun Install Cache?
Located at ~/.bun/install/cache (or %LocalAppData%\Bun\install\cache on Windows), Bun caches downloaded npm packages when running bun add or bun install.
Can You Delete the Bun Cache?
✅ Yes, safe to delete.
- No project breakage: Existing
node_modulesfolders in your code projects will remain untouched.
How to Clean Up Bun Cache
bun pm cache rm
Discussion
Loading authentication...