Add `nvmrc` note to `nvm which` blurb.

master
Jordan Harband 2014-12-17 01:30:23 -08:00
parent fc3a30dd0e
commit f408d68afc
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ 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`, `nvm exec`, and `nvm run` will all respect an `.nvmrc` file.
`nvm use`, `nvm install`, `nvm exec`, `nvm run`, and `nvm which` will all respect an `.nvmrc` file when a version is not supplied.
To download, compile, and install the latest v0.10.x release of node, do this:

2
nvm.sh
View File

@ -547,7 +547,7 @@ nvm() {
echo " nvm unalias <name> Deletes the alias named <name>"
echo " nvm reinstall-packages <version> Reinstall global \`npm\` packages contained in <version> to current version"
echo " nvm unload Unload \`nvm\` from shell"
echo " nvm which [<version>] Display path to installed node version"
echo " nvm which [<version>] Display path to installed node version. Uses .nvmrc if available"
echo
echo "Example:"
echo " nvm install v0.10.32 Install a specific version number"