How to set the default version of nodejs in a linux terminal
If you are fed up of having to set the default nodejs version in each terminal tab, then this post is for you. Hopefully you installed node using nvm. Use the following command to set your node version
# list the versions of node you have installed
nvm ls
# Install a particular version
nvm install 8.10.0
# Set version 8.10.0 as default
nvm alias default 8.10.0
# If you want switch to using 6.1.0 in your current terminal tab
nvm use 6.1.0
 
    