[Docs] add instructions for installing a specific version

et304383 2018-08-27 11:50:48 -03:00 committed by Jordan Harband
parent 8542df4ac5
commit 2d97ce5f7b
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 14 additions and 1 deletions

View File

@ -189,7 +189,19 @@ For manual upgrade with `git` (requires git v1.7.10+):
To download, compile, and install the latest release of node, do this:
```sh
nvm install node
nvm install node # "node" is an alias for the latest version
```
To install a specific version of node:
```sh
nvm install 6.14.4 # or 10.10.0, 8.9.1, etc
```
You can list available versions using ls-remote:
```sh
nvm ls-remote
```
And then in any new shell just use the installed version:
@ -203,6 +215,7 @@ Or you can just run it:
```sh
nvm run node --version
```
Or, you can run any arbitrary command in a subshell with the desired version of node:
```sh