[readme] Fix uninstall instructions
`nvm unload` will unset NVM_DIR. So gotta save NVM_DIR first.master
parent
c24c3134a7
commit
294ff9e3aa
|
@ -844,10 +844,12 @@ As a potential alternative, @mhart (a Node contributor) has some [Docker images
|
||||||
|
|
||||||
To remove `nvm` manually, execute the following:
|
To remove `nvm` manually, execute the following:
|
||||||
|
|
||||||
First, use `nvm unload` to remove the nvm command from your terminal session. then:
|
First, use `nvm unload` to remove the nvm command from your terminal session and delete the installation directory:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ rm -rf "$NVM_DIR"
|
$ nvm_dir="${NVM_DIR:-~/.nvm}"
|
||||||
|
$ nvm unload
|
||||||
|
$ rm -rf "$nvm_dir"
|
||||||
```
|
```
|
||||||
|
|
||||||
Edit `~/.bashrc` (or other shell resource config) and remove the lines below:
|
Edit `~/.bashrc` (or other shell resource config) and remove the lines below:
|
||||||
|
|
Loading…
Reference in New Issue