Recommend installation in hidden ~/.nvm directory

The README oddly recommends to install nvm inside of `~/nvm` which goes against conventions. It makes more sense to install tools like nvm in hidden home directories.

It's also best to use the `source` command explicitly instead of its `.` alias so people understand what the command does.
This commit is contained in:
Olivier Lacan 2013-03-28 03:26:33 -03:00
parent 01189e144c
commit ed02a97de8

View File

@ -23,11 +23,11 @@ For manual install create a folder somewhere in your filesystem with the `nvm.sh
Or if you have `git` installed, then just clone it:
git clone git://github.com/creationix/nvm.git ~/nvm
git clone git://github.com/creationix/nvm.git ~/.nvm
To activate nvm, you need to source it from your bash shell
. ~/nvm/nvm.sh
source ~/.nvm/nvm.sh
I always add this line to my `~/.bashrc` or `~/.profile` file to have it automatically sourced upon login.
Often I also put in a line to use a specific version of node.