From 2d97ce5f7b1cebc22feb054c4d20e4a11f8122dc Mon Sep 17 00:00:00 2001 From: et304383 <2693414+et304383@users.noreply.github.com> Date: Mon, 27 Aug 2018 11:50:48 -0300 Subject: [PATCH] [Docs] add instructions for installing a specific version --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2151f8c..c6b8cfd 100644 --- a/README.md +++ b/README.md @@ -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