mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
Improve clarity of readme
Include lines that the script will attempt to add to the profile files. Helps users diagnose which lines to expect to see in their profile files if they are having difficulty getting 'nvm' to work at the command line.
This commit is contained in:
parent
e0e1c0379a
commit
9589137d18
@ -46,7 +46,14 @@ or Wget:
|
||||
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash
|
||||
```
|
||||
|
||||
<sub>The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).</sub>
|
||||
<sub>The script clones the nvm repository to `~/.nvm` and adds the following source lines to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).</sub>
|
||||
|
||||
```
|
||||
export NVM_DIR="/home/user/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
```
|
||||
|
||||
Where 'user' in the above NVM_DIR exported path is substituted for the current logged in user.
|
||||
|
||||
You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables.
|
||||
Eg: `curl ... | NVM_DIR=/usr/local/nvm bash` for a global install.
|
||||
|
Loading…
Reference in New Issue
Block a user