Files
pnpm/pnpm11/installing/linking/modules-cleaner
Zoltan Kochanandgithub-actions[bot] 726d6b4a04 chore(release): 11.23.0 (#14111)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-23 15:47:36 +02:00
..
2026-08-23 15:47:36 +02:00
…

@pnpm/installing.linking.modules-cleaner

Exports util functions to clean up node_modules

Install

pnpm install @pnpm/installing.linking.modules-cleaner

API

prune(...args)

Compares the wanted lockfile with the current one and removes redundant packages from node_modules.

removeDirectDependency(...args)

Removes a direct dependency from node_modules.

License

MIT