-
-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV: put nvm installation section into a separate include file
- Loading branch information
Showing
2 changed files
with
33 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
The following terminal session commands use `bash` for the shell. | ||
Adapt them for your flavor of shell. | ||
|
||
```{seealso} | ||
See the [`nvm` install and update script documentation](https://github.com/nvm-sh/nvm#install--update-script). | ||
For the `fish` shell, see [`nvm.fish`](https://github.com/jorgebucaran/nvm.fish). | ||
``` | ||
|
||
1. Create your shell profile, if it does not exist. | ||
|
||
```shell | ||
touch ~/.bash_profile | ||
``` | ||
|
||
2. Download and run the `nvm` install and update script, and pipe it into `bash`. | ||
|
||
```shell | ||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v{NVM_VERSION}/install.sh | bash | ||
``` | ||
|
||
3. Source your profile. | ||
Alternatively close the session and open a new one. | ||
|
||
```shell | ||
source ~/.bash_profile | ||
``` | ||
|
||
4. Verify that the `nvm` version is that which you just installed or updated: | ||
|
||
```shell | ||
nvm --version | ||
``` |