Update outdated Node.js version examples in --help and README#3847
Open
than wants to merge 2 commits into
Open
Update outdated Node.js version examples in --help and README#3847than wants to merge 2 commits into
than wants to merge 2 commits into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 Node4.8.3,6.10.3,8.0.0/8.1.04.2,5.9,12.22.1,14.x,16.x,18.xUpdated to current LTS lines (22.x / 24.x). The
--helpblock keeps its existing column alignment, and the.nvmrcwalkthrough's sample output (download URL + npm pairing) is updated to match.Intentionally left unchanged
These reference old versions on purpose, so they're untouched:
--reinstall-packages-from=iojs v4.2,iojs-v1.0.3)stable/unstablealias notes (v0.12/v0.11)v0.8.6source-build narrative--shared-zlibexample, whose surrounding text explicitly demonstrates installing an older versionnvm lslistings) and the macOS/vim troubleshooting exampleChecklist
[Docs]fornvm.sh,[readme]forREADME.md)bash -n nvm.shpasses;nvm --helprenders with correct alignment; no trailing whitespace introduced