From c0c5e8d7efa2d59205ab28b4b95fe64d3361b9a5 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 4 May 2014 02:20:24 -0700 Subject: [PATCH] Editing README to note improved .nvmrc behavior. --- README.markdown | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.markdown b/README.markdown index babed92..c2602df 100644 --- a/README.markdown +++ b/README.markdown @@ -37,6 +37,9 @@ Often I also put in a line to use a specific version of node. ## Usage +You can create an `.nvmrc` file containing version number in the project root directory (or any parent directory). +`nvm use`, `nvm install`, and `nvm run` will all respect an `.nvmrc` file. + To download, compile, and install the latest v0.10.x release of node, do this: nvm install 0.10 @@ -45,13 +48,9 @@ And then in any new shell just use the installed version: nvm use 0.10 -You can create an `.nvmrc` file containing version number in the project root folder; run the following command to switch versions: - - nvm use - Or you can just run it: - nvm run 0.10 + nvm run 0.10 --version If you want to see what versions are installed: