Skip to content

Commit

Permalink
Merge pull request #1173 from wiserweb/master
Browse files Browse the repository at this point in the history
[Docs] Specify the lines that will be added by the installation script
  • Loading branch information
ljharb authored Jul 26, 2016
2 parents a09f225 + 6ac7ecf commit 8a199e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh |

<sub>The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).</sub>

```sh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
```

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.

Expand Down

0 comments on commit 8a199e0

Please sign in to comment.