From 294ff9e3aa8ce02bbf8d83fa235a363d9560a179 Mon Sep 17 00:00:00 2001 From: Huy Z Date: Tue, 13 Feb 2024 03:39:07 -0800 Subject: [PATCH] [readme] Fix uninstall instructions `nvm unload` will unset NVM_DIR. So gotta save NVM_DIR first. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 23f300fc80..9e47e0147e 100644 --- a/README.md +++ b/README.md @@ -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: