xxxxxxxxxx
// go to your rc file (if you using zsh: sudo nano ~/.zshrc)
// replace the NVM things to this:
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
xxxxxxxxxx
vim ~/.zshrc
//Add below lines and then restart the zsh
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
xxxxxxxxxx
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
xxxxxxxxxx
Check your .bash_profile, .zshrc, or .profile file.
You most likely had a problem during the installation.
You should have the following at the end of one of those files.
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh # This loads NVM
xxxxxxxxxx
sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/local/bin/mysql