nodejs and npm (latest version) installation instruction through package manager on Ubuntu 12.04.
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager