echo "source ~/.nvm/nvm.sh" >> .bash_profile
source ~/.bash_profile
$ nvm
When you see output, the nvm installation was successful.
When you see output, the nvm installation was successful. If you encounter the following prompt after closing the shell:
-bash: nvm: command not found
Please execute:
$ source ~/.nvm/nvm.sh
Install Node.js
Install the latest stable version of Node.js using the nvm command