I was having funny little issues on Ubuntu 12.10 64bit, and realized that it was using a really old version of node.
I installed a new one like this:
sudo apt-get install python-software-properties software-properties-common python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install python g++ make nodejs npm
Recently, I was setting up an Ubuntu VirtualMachine, and drukenly mistyped the primary username.
This is pretty easy to fix very quickly, thought I would share.