If none of the answers above work, do the following steps:
Change directory to ~/.nvm
Check if you have nvm.sh. If you do then all you have to do is run nvm.sh. Essentially type source nvm.sh. This should solve most of the issues you'd be facing trying to use nvm.