Problem
nvm ls currently displays all built-in aliases, including iojs and historical LTS aliases that have long been EOL.
Most of these aliases resolve to N/A, making the output unnecessarily verbose for users who simply want to inspect installed Node.js versions and active aliases.
As more LTS releases are added over time, the output continues to grow.
Proposal
Add a --all-aliases option to nvm ls.
By default, nvm ls would display only relevant aliases, such as:
default
node
stable
unstable
lts/* that resolve to an installed or currently supported release
When --all-aliases is specified, nvm ls would display the complete list of built-in aliases, including historical LTS aliases and iojs.
Benefits
- Cleaner and more readable default output.
- Historical aliases remain available for users who need them.
- Better scalability as additional LTS releases are added.
- Preserves existing functionality through an explicit opt-in option.
Problem
nvm lscurrently displays all built-in aliases, includingiojsand historical LTS aliases that have long been EOL.Most of these aliases resolve to
N/A, making the output unnecessarily verbose for users who simply want to inspect installed Node.js versions and active aliases.As more LTS releases are added over time, the output continues to grow.
Proposal
Add a
--all-aliasesoption tonvm ls.By default,
nvm lswould display only relevant aliases, such as:defaultnodestableunstablelts/*that resolve to an installed or currently supported releaseWhen
--all-aliasesis specified,nvm lswould display the complete list of built-in aliases, including historical LTS aliases andiojs.Benefits