npm cache cleanup mac / pnpm store cleanup / yarn cache cleanup / bun cache cleanup

npm / pnpm / Yarn / Bun cache cleanup

Unify JavaScript package-manager cache analysis and clean stale stores from one place.

Where storage typically grows

  • Multiple package managers create overlapping cache stores.
  • Old monorepo dependencies remain after project deletion.
  • Manual cleanup across hidden paths is tedious and error-prone.

Paths covered by Free Mac Space

  • ~/.npm/_cacache
  • ~/.pnpm-store
  • ~/Library/pnpm/store
  • ~/.yarn/berry/cache
  • ~/.yarn/cache
  • ~/.bun/install/cache

Recommended workflow

  1. 1.

    Scan Node toolchain cache paths across package managers.

  2. 2.

    Sort by size and remove stale stores first.

  3. 3.

    Keep currently active project caches if rebuild speed is still important.

  4. 4.

    Re-run scan and export report for baseline tracking.

Safety boundary

Cache cleanup remains user-reviewed. Free Mac Space does not auto-delete package-manager storage.

FAQ

Can I clean npm and pnpm caches together?+

Yes. Free Mac Space surfaces all supported manager caches in one category view.

Will this remove dependencies from active projects?+

It targets cache and store locations, not project source folders, but you should still review paths before cleanup.

What format should I export for tooling scripts?+

JSON is best for automation, while CSV/HTML/PDF are better for review and sharing.

Related deep-dive articles

JavaScript Toolchains

npm, pnpm, Yarn, Bun caches: hidden duplicates across projects

Package managers are fast because they cache aggressively. On multi-project Macs, these stores can consume massive space even when repos are removed.

Read article

Python Toolchains

pip, Conda, and uv caches: hidden Python storage across projects

Python environments stay fast by caching aggressively. Over time, pip/Conda/uv caches and stale virtual environments can quietly consume large chunks of SSD space.

Read article

Android Studio

Android Studio, Gradle, and emulator images: the Android storage trio

Android development tooling stores dependencies, SDK components, and emulator images in separate locations. Together, they can become one of the largest hidden storage sources on macOS.

Read article

Ollama

Ollama model storage on Mac: model blobs, tags, and stale pulls

Local AI workflows can consume tens or hundreds of gigabytes quickly. Ollama stores model blobs and tags in dedicated paths that are easy to overlook during normal cleanup.

Read article

npm / pnpm / Yarn / Bun cache cleanup

Unify JavaScript package-manager cache analysis and clean stale stores from one place.

Download Free Mac Space