Skip to content

Commit

Permalink
[readme] Fix uninstall instructions
Browse files Browse the repository at this point in the history
`nvm unload` will unset NVM_DIR. So gotta save NVM_DIR first.
  • Loading branch information
huyz authored and ljharb committed Feb 13, 2024
1 parent c24c313 commit 294ff9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 294ff9e

Please sign in to comment.