Kleaner PRO

Professional care for Windows 7/10/11.

Made with care for performance.

Follow us
Products
  • Kleaner PRO
  • Store
  • Activation portal
  • What's new in Kleaner PRO
  • More products — coming soon
Resources
  • Features
  • FAQ
  • Compare tools
  • Knowledge Base
  • Blog
  • Download
Legal
  • License agreement
  • Terms of service
  • Privacy policy
  • Refund policy
[email protected]Telegram support @Vladimlrovlch
© 2026 Kleaner PRO · kleaner.pro. All rights reserved.
Payments
ЮMoneyVisaMastercardМИРPayPalWebMoneyUseGatewayBitcoinEthereumUSDT
    Kleaner PRO
    FeaturesSmart CarePricingFAQKnowledge BaseBlogDownloadActivate
    FeaturesSmart CarePricingFAQKnowledge BaseBlogDownloadActivate
    BuyBuy license
    Blog →5 min read2026-09-09· Kleaner PRO Team

    npm and pnpm Caches: Where Gigabytes Hide in AppData

    Node toolchains are the quietest storage hogs on a dev machine: an npm cache can quietly pass 10 GB, and the pnpm store adds its own layer on top. Both live in AppData, neither shows up in the folders you usually clean, and both can be trimmed in minutes — with one Windows-specific gotcha.

    Two tools, two caching models

    npm keeps a content-addressable cache at %LOCALAPPDATA%\npm-cache: every tarball it ever downloaded, plus logs and the _npx cache for one-off package runs. None of it is needed to keep installed projects working — it exists purely to make future installs faster and offline-friendly. pnpm works differently: a single store (in recent versions at %LOCALAPPDATA%\pnpm\store) holds the real files, and every node_modules folder in every project is built from hard links back to it. That's why pnpm projects don't multiply disk usage the way npm ones do — and why the store itself grows without limit: each new package version lands there permanently until you prune.

    The result is a familiar surprise: you delete an old project, the space doesn't come back, because the hard links in the store keep the data alive. The thing to check is the store, not the project folders.

    The cleanup commands worth knowing

    Everything here is safe by design — caches are caches, and the tools rebuild them on demand:

    • npm cache clean --force — wipes the whole npm cache; the next installs re-download what they need
    • npm cache verify — the gentler option: garbage-collects and checks integrity instead of nuking
    • pnpm store prune — removes packages from the store that no project links to anymore
    • Delete %LOCALAPPDATA%\npm-cache\_npx — throwaway caches from npx runs, always safe to drop
    • npm config set cache D:\dev\npm-cache — moves the cache off your SSD to a data drive, permanently
    • Measure first: a size scan of AppData beats deleting blind — npm-cache and the pnpm store are the two usual suspects

    The NTFS hard-link gotcha

    Here's the part that confuses everyone: on NTFS, a file's data is freed only when the last hard link to it disappears. Delete your pnpm store right after cleaning out node_modules, and you free what you expect. Delete the store while projects still link to its files, and you free nothing — the bytes stay on disk as long as node_modules exists, and Explorer keeps showing store entries that are effectively empty husks. So the order matters: remove the projects (or their node_modules) first, then run pnpm store prune. CI runners and machines that churn through many repositories benefit most from doing this monthly; on a single-project laptop the store rarely justifies the attention.

    Questions and Answers

    Is it safe to delete the npm-cache folder in AppData?

    Yes. It only holds downloaded tarballs and logs; npm re-downloads whatever it needs on the next install. Use npm cache clean --force or just delete the folder.

    Where is the pnpm store located on Windows?

    In recent pnpm versions, at %LOCALAPPDATA%\pnpm\store — check with pnpm store path. Clean it with pnpm store prune, not by deleting folders manually.

    Know what is included before you buy.

    The one-time 30-minute trial covers core tools. PRO-labelled features stay locked until a paid license is activated.

    Download for WindowsBuy license

    Read next

    The Complete Windows 11 Cleanup Guide (2026): what is safe to delete and what breaks the system→Windows 11 privacy in 2026: 14 telemetry settings worth checking→SSD and HDD in 2026: defragmentation, TRIM, and myths that need to die→

    Write to us: [email protected]

    English
    EnglishРусскийУкраїнськаDeutschEspañolFrançaisPortuguês (BR)Polski