I was getting the same error after I installed a different version of NVM manually (forgetting that I installed an older version via homebrew). This led to the wrong configuration path in your .bash_profile, .bashrc, or any other similar file that runs every time a new terminal window starts.
https://github.com/creationix/nvm#installation, -
export NVM_DIR=~/.nvm
[ -s $NVM_DIR/nvm.sh ] && . $NVM_DIR/nvm.sh
NVM. , die , NVM ~/.nvm
, .