ローカルに導入してみる
昨晩 nave は clone している模様。
$ ls ~/.nave AUTHORS nave.sh package.json README.md $
ええと、ls-remote で導入可能なバージョンが確認できるらしい。
$ ~/.nave/nave.sh ls-remote remote: 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.1.0 0.1.1 0.1.2 0.1.3 0.1.4 0.1.5 0.1.6 0.1.7 0.1.8 0.1.9 0.1.10 0.1.11 0.1.12 0.1.13 0.1.14 0.1.15 0.1.16 0.1.17 0.1.18 0.1.19 0.1.20 0.1.21 0.1.22 0.1.23 0.1.24 0.1.25 0.1.26 0.1.27 0.1.28 0.1.29 0.1.30 0.1.31 0.1.32 0.1.33 0.1.90 0.1.91 0.1.92 0.1.93 0.1.94 0.1.95 0.1.96 0.1.97 0.1.98 0.1.99 0.1.100 0.1.101 0.1.102 0.1.103 0.1.104 0.2.0 0.2.1 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.3.0 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 0.4.0 0.4.1 0.4.2 0.4.3 0.4.4 0.4.5 0.4.6 0.4.7 0.4.8 0.4.9 0.4.10 0.4.11 0.4.12 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.5.8 0.5.9 0.5.10 $
とりあえず最新を導入。
$ ~/.nave/nave.sh install 0.5.10
結構時間かかりました。測ってないですが。どうも .nave 配下に導入されている模様ですが、まだコマンドサーチパスの範疇には無いですな。
use しなさい、とあります。どこに入るのやら。
$ ~/.nave/nave.sh use 0.5.10 Already installed: 0.5.10 using 0.5.10 $ which node /home/fuga/.nave/installed/0.5.10/bin/node $
次は npm か。とりあえず install.sh を取得。
$ wget http://npmjs.org/install.sh --2011-10-30 20:41:05-- http://npmjs.org/install.sh Resolving npmjs.org... 173.203.97.118 Connecting to npmjs.org|173.203.97.118|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 7149 (7.0K) [text/plain] Saving to: `install.sh' 100%[==============================================================================================================================>] 7,149 39.5K/s in 0.2s 2011-10-30 20:41:31 (39.5 KB/s) - `install.sh' saved [7149/7149] $
中身読むのが微妙に面倒いのでそのまま実行しちゃえ。
$ sh ./install.sh tar=/bin/tar version: tar (GNU tar) 1.23 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. fetching: http://registry.npmjs.org/npm/-/npm-1.0.103.tgz 0.5.10 1.0.103 cleanup prefix=/home/rms/.nave/installed/0.5.10 All clean! ./configure root=/home/rms/.nave/installed/0.5.10/lib/node binroot=/home/rms/.nave/installed/0.5.10/bin manroot=/home/rms/.nave/installed/0.5.10/share/man /home/rms/.nave/installed/0.5.10/bin/npm -> /home/rms/.nave/installed/0.5.10/lib/node_modules/npm/bin/npm-cli.js /home/rms/.nave/installed/0.5.10/bin/npm-g -> /home/rms/.nave/installed/0.5.10/lib/node_modules/npm/bin/npm-cli.js /home/rms/.nave/installed/0.5.10/bin/npm_g -> /home/rms/.nave/installed/0.5.10/lib/node_modules/npm/bin/npm-cli.js npm@1.0.103 /home/rms/.nave/installed/0.5.10/lib/node_modules/npm It worked $ which npm /home/rms/.nave/installed/0.5.10/bin/npm $
ふむ。とりあえずこれで環境はできたので node.js + express + mongoDB + WebSocket などのリンクまとめを確認させて頂きつつ今後の作戦を練ります。