2011-04-26

NodeJS 在 mac 上的安裝, 刪除

node.js 可以在 http://nodejs.org/ 取得。
解壓縮之後,在 nodejs 目錄下輸入下列指令:
1) ./configure
2) make
3) sudo make install

刪除 nodejs 的指令:
1) make uninstall

update 20110429:
或是透過 mac port 也可以安裝 nodejs。
1) sudo port install nodejs 即可

透過 mac port 刪除 nodejs 的指令
1) sudo port uninstall nodejs

但在安裝前須先安裝 mac port (http://www.macports.org/install.php)。

mac port 一些指令:

1) port selfupdate 檢查更新
2) port installed 檢查已安裝項目
3) port search [item] 搜尋可安裝項目 (例 port search nodejs)
4) port install [item] 安裝項目
5) port uninstall [item] 反安裝項目