nvm icon indicating copy to clipboard operation
nvm copied to clipboard

rm doesn't remove the directory via the environmental variable

Open CodingLama opened this issue 1 year ago • 1 comments

Operating system and version:

Ubuntu 22.04.3 LTS

nvm debug output:


nvm ls output:


How did you install nvm?

wget command via terminal

What steps did you perform?

  1. nvm unload
  2. $ rm -rf "$NVM_DIR"

What happened?

nothing

What did you expect to happen?

$HOME/.nvm would be deleted

Is there anything in any of your profile files that modifies the PATH?

".profile":

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

CodingLama avatar Feb 07 '24 12:02 CodingLama

ah, that's true, since nvm unload unsets NVM_DIR. We'll need to flip the order in the readme.

ljharb avatar Feb 07 '24 17:02 ljharb

Fixed by #3302.

ljharb avatar Feb 29 '24 04:02 ljharb