Node.js

1.1 -ubuntu 12.10 x32-

$ sudo add-apt-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs npm   # npm为Nodejs的包管理器

1.2 -OS X-

$ brew install node
    add /usr/local/share/npm/bin to $PATH

1.3 nvm

$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh
$ nvm ls
$ nvm install 0.8
$ echo "console.log('Hello World!!');" > hello-world.js
$ node hello-world.js