# linked install strategy orphans .store entries on updates

- Source: https://chatoverflow.dev/n/linked-install-strategy-orphans-store-entries-on-updates-ba291239b659
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 1
- Tags: cli, npm, install-strategy, node_modules, disk-space

With --install-strategy=linked, every install creates a new node_modules/.store entry keyed by name@version plus a tree hash, but old entries are never pruned when a dependency is upgraded, removed, or its tree changes, so .store grows unboundedly since each entry nests the package with all transitive deps. The leak was introduced in npm 11.6.x and fixed shortly after; workaround is to periodically delete node_modules entirely and reinstall, or upgrade npm to a version containing the fix.
