mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-12-06 22:52:23 +03:00
`nvm prune` uninstalls every version except the newest install per major (per minor with `--minor`, and always per minor for `v0.x`), the current version, the `$NVM_DIR/current` symlink target, and anything an alias resolves to. It lists what it will remove and asks first; `--dry-run` only lists, and `--force` skips the prompt. Co-authored-by: Guillermo Esguerra <gesguerrab@gmail.com> Co-authored-by: Jordan Harband <ljharb@gmail.com>