Skip to content

Update outdated Node.js version examples in --help and README#3847

Open
than wants to merge 2 commits into
nvm-sh:masterfrom
than:refresh-version-examples
Open

Update outdated Node.js version examples in --help and README#3847
than wants to merge 2 commits into
nvm-sh:masterfrom
than:refresh-version-examples

Conversation

@than
Copy link
Copy Markdown

@than than commented May 27, 2026

What

Refresh the Node.js versions used in user-facing examples. They referenced versions that have been EOL for years, which makes the docs look stale and can confuse new users:

  • nvm --help "Example" block cited Node 4.8.3, 6.10.3, 8.0.0/8.1.0
  • README examples cited 4.2, 5.9, 12.22.1, 14.x, 16.x, 18.x

Updated to current LTS lines (22.x / 24.x). The --help block keeps its existing column alignment, and the .nvmrc walkthrough's sample output (download URL + npm pairing) is updated to match.

Intentionally left unchanged

These reference old versions on purpose, so they're untouched:

  • io.js migration examples (--reinstall-packages-from=iojs v4.2, iojs-v1.0.3)
  • stable / unstable alias notes (v0.12 / v0.11)
  • the Alpine max-version table and the v0.8.6 source-build narrative
  • the --shared-zlib example, whose surrounding text explicitly demonstrates installing an older version
  • captured terminal output (Docker, nvm ls listings) and the macOS/vim troubleshooting example

Checklist

  • Two atomic, DCO-signed commits ([Docs] for nvm.sh, [readme] for README.md)
  • No code/behavior changes — example strings only
  • bash -n nvm.sh passes; nvm --help renders with correct alignment; no trailing whitespace introduced

than added 2 commits May 27, 2026 11:13
The Example section printed by `nvm --help` referenced long-EOL
Node versions (4.8.3, 6.10.3, 8.0.0/8.1.0). Update them to current
LTS lines (22.x/24.x), preserving the existing column alignment.

Signed-off-by: Than Tibbetts <than@me.com>
Several "pick a recent version" examples cited EOL Node versions
(4.2, 5.9, 12.22.1, 14.x, 16.x, 18.x). Update them to current LTS
lines (22.x/24.x), including the full `.nvmrc` walkthrough output.

Intentionally-historical references are left unchanged: the io.js
migration examples, the `stable`/`unstable` alias notes, the Alpine
version table, the source-build narrative, and the `--shared-zlib`
example (which explicitly demonstrates installing an older version).

Signed-off-by: Than Tibbetts <than@me.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant