Skip to content
Myr

[Docs] add instructions for installing a specific version

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by et304383 · committed by Jordan Harband · parent 8542df4 · Browse files · 1 file+14 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−1 removed

  • other:+14 added−1 removed

1 file+14 added−1 removed

modified:README.md+14 added-1 removed
187 unmodified lines
188189To download, compile, and install the latest release of node, do this:190191```sh192nvm install node192nvm install node # "node" is an alias for the latest version193```194195To install a specific version of node:196197```sh198nvm install 6.14.4 # or 10.10.0, 8.9.1, etc199```200201You can list available versions using ls-remote:202203```sh204nvm ls-remote205```206207And then in any new shell just use the installed version:208209```sh210nvm use node
3 unmodified lines
214215```sh216nvm run node --version217```218219Or, you can run any arbitrary command in a subshell with the desired version of node:220221```sh222nvm exec 4.2 node --version
382 unmodified lines