Skip to content

Commit 31e5230

Browse files
authored
Fix README.md uninstall instructions
`nvm unload` will unset NVM_DIR. So gotta save NVM_DIR first.
1 parent 4e2a71b commit 31e5230

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,10 +844,12 @@ As a potential alternative, @mhart (a Node contributor) has some [Docker images
844844
845845
To remove `nvm` manually, execute the following:
846846
847-
First, use `nvm unload` to remove the nvm command from your terminal session. then:
847+
First, use `nvm unload` to remove the nvm command from your terminal session and delete the installation directory:
848848
849849
```sh
850-
$ rm -rf "$NVM_DIR"
850+
$ nvm_dir="${NVM_DIR:-~/.nvm}"
851+
$ nvm unload
852+
$ rm -rf "$nvm_dir"
851853
```
852854
853855
Edit `~/.bashrc` (or other shell resource config) and remove the lines below:

0 commit comments

Comments
 (0)