$ wget http://npmjs.org/install.sh
$ sh install.sh
fetching: http://registry.npmjs.org/npm/-/npm-1.0.9-1.tgz
0.4.8
1.0.9-1
prefix=/home/hato/local/node

This script will find and eliminate any shims, symbolic
links, and other cruft that was installed by npm 0.x.

Is this OK? enter 'yes' or 'no'
yes

All clean!
! [ -d .git ] || git submodule update --init
node cli.js cache clean
node cli.js rm npm -g -f --loglevel error
node cli.js install -g -f
/home/hato/local/node/bin/npm -> /home/hato/local/node/lib/node_modules/npm/bin/npm.js
npm@1.0.9-1 /home/hato/local/node/lib/node_modules/npm
It worked

// モジュールインストール
// -g つけないとカレントディレクトリにDLしてくるだけ。
$ npm install -g socket.io
$ npm install -g express
$ npm install -g ejs


// モジュールのパスを通す
$ echo "export NODE_PATH=\$HOME/local/node/lib/node_modules/" >> ~/.bashrc
$ export NODE_PATH=$HOME/local/node/lib/node_modules/

$ git clone git://github.com/visionmedia/express.git