mac os install node.js


原文の住所:http://howtonode.org/how-to-install-nodejs
 あなたが使うなら homebrew 管理ツールを包むと、直接brew install nodeができます。
または別の取り付け方法で:
Install Xcode.Install git.下記のコードを実行します。  
git clone git://github.com/ry/node.git
cd node
./configure
make
sudo make install
テスト時の成功:
ハローノード.jsを書きます。
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello Node.js
'); }).listen(8124, "127.0.0.1"); console.log('Server running at http://127.0.0.1:8124/');
以下のコマンドを入力します。
> node hello_node.js
Server running at http://127.0.0.1:8124/
インストールが成功したらアクセスします。 http://127.0.0.1:8124/ nodejsのインストールが成功しているのが見えます。
附:git装着url:http://help.github.com/mac-set-up-git/