[readme] Fix uninstall instructions

`nvm unload` will unset NVM_DIR. So gotta save NVM_DIR first.
master
Huy Z 2024-02-13 03:39:07 -08:00 committed by Jordan Harband
parent c24c3134a7
commit 294ff9e3aa
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 4 additions and 2 deletions

View File

@ -844,10 +844,12 @@ As a potential alternative, @mhart (a Node contributor) has some [Docker images
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
$ 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: