mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
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:
parent
01189e144c
commit
ed02a97de8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user