Node version manager issue on mac

Viewed 69
2 Answers

For me the issue was I was using bash before and now have zsh which was only inserting the env loading lines in .bashrc. I had to copy the following lines manually into .zshrc.

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Check and add these lines if they are not in it already.

This has been mentioned in the wiki as well.

My issue was exactly what deepakchethan has mentioned. I just removed the bash_profile file and reinstalled. Nvm with same command and it worked properly this time.

Related