Switch Nodejs Versions Easily

This is how you can switch NodeJS version to a different version (might be an earlier version if plugins/modules aren’t working with your current version of Node.js)

# see more about nvm: https://github.com/creationix/nvm
# added bonus: gives you the opportunity to switch node versions
 
# install nvm
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
 
# reload bash_profile
source ~/.bash_profile
 
# install a node.js version, edit the version you want to use
nvm install v0.10.22

Then you should see this:

root@lineman:/var/www/yoangular# nvm install v0.10.22
######################################################################## 100.0%
Now using node v0.10.22

refs:
http://blog.nodejs.org/2011/04/04/development-environment/