Yeomanインストール(其の1) nodebrewでNode.jsをインストール
Yeoman は Node.js で作成されているみたいで、Yeoman をインストールするためにはまず Node.js をインストールする必要があるみたいです。
で、その Node.js をインストールするには、Node.js のバージョン管理をしてくれるnodebrew がオススメらしい。
というわけで、
のインストール手順に従って、インストール開始。
$ curl -L git.io/nodebrew | perl - setup
$ export PATH=$HOME/.nodebrew/current/bin:$PATH >> .bashrc
$ source ~/.bashrc
$ nodebrew ls-remote
$ nodebrew install v0.11.8
$ nodebrew use v0.11.8
$ node -v
現在の安定バージョンv0.10.21では上手く入らなかったので、開発バージョンの v0.11.8 をインストールしてみました。
これでいいのかしら・・・?
追記)
~/.bashrc にパスを通したのに、PCを再起動させると nodebrew も node もコマンドが効かなくなっちゃいました。
私のPC(MacOSX)では、~/.bash_profile にパスを追加しないとダメみたいです。
ーーーーーーーーーー
<参考サイト>
- Yeoman入門(第一部、yoを使う) - from scratch
- Bower入門(基礎編) - from scratch
- hokaccha/nodebrew · GitHub
- Node.js 日本ユーザグループ