git clone git://github.com/isaacs/npm.git ./npm cd npm git checkout origin/0.2 curl http://npmjs.org/install.sh | sudo sh #test /usr/local/bin/npm install socket.io
sudo apt-get install libpq-dev git clone https://github.com/ry/node_postgres.git cd node_postgres node-waf configure build