I was also having the issue where nvm use
would say it was using the version I asked it to switch to, but then node -v
said nothing changed. For me, which node
brought two paths back, which was weird, because the base paths were the same. My home directory is /Users/stephene
which -a node
/Users/stephene/.nvm/versions/node/v14.15.5/bin/node
~/.nvm/versions/node/v10.24.1/bin/node
In ~/.bash_profile
, I had
export NVM_DIR="~/.nvm"
I figured NVM was getting confused by the home file path reference, so I spelled it out for NVM by updating my .bash_profile
export NVM_DIR="/Users/stephene/.nvm"
and that fixed the problem.