Apps

pnpm Unused Packages

pnpm keeps a content-addressable package store on disk so projects can hard-link or symlink dependency files instead of downloading and unpacking every package again. Over time that store accumulates unreferenced package versions, extracted tarball contents, metadata, and side-effects artifacts from old installs that are no longer needed by any current workspace. Kudu removes only unused pnpm store entries, optionally using pnpm's native prune behavior, while leaving active dependencies, lockfiles, project files, accounts, settings, and credentials untouched.

Why it matters

Why clean pnpm Unused Packages?

  • Old package versions remain in pnpm's global content-addressable store after upgrades, so disk usage keeps growing even though those dependencies are no longer referenced by any current project
  • Abandoned side-effects artifacts from previous native module builds pile up in the store and can consume gigabytes, which users notice as unexpectedly large pnpm folders on SSDs and CI runners
  • After lockfile churn across many branches or monorepos, the store keeps copies for packages no active workspace needs, making backups, antivirus scans, and disk indexing take longer
  • Stale or partially fetched metadata in pnpm cache directories can lead to repeated integrity checks or re-downloads, which shows up as installs that seem to revisit packages you thought were already cached
  • Developers who switch Node.js versions frequently often leave behind package variants built for older environments, so the store grows while current installs use only a fraction of what is kept
  • On machines with limited free space, an oversized pnpm store can cause package installs, Docker builds, or editor indexing to fail with low-disk-space errors even though the projects themselves are much smaller
What gets cleaned

Cache paths Kudu targets

Windows

%LocalAppData%/pnpm/store
%LocalAppData%/pnpm-cache
%LocalAppData%/pnpm-store
~/.pnpm-store

macOS

~/Library/pnpm/store

Linux

~/.local/share/pnpm/store
Frequently asked

Common questions about pnpm Unused Packages

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.