インストール†
nodebrewを使うとrbenvのようにnode.jsのバージョンを選択できる。
nodebrew†
install†
curl -L https://raw.githubusercontent.com/hokaccha/nodebrew/master/nodebrew | perl - setup
node.jsのインストール†
nodebrew ls-remote
nodebrew install-binary v0.12.0
Node.js configure error: No acceptable C compiler found!
Please make sure you have a C compiler installed on your system and/or
consider adjusting the CC environment variable if you installed
it in a non-standard prefix.
python ./configure
Node.js configure error: No acceptable C compiler found!
Please make sure you have a C compiler installed on your system and/or
consider adjusting the CC environment variable if you installed
it in a non-standard prefix.
python tools/gyp_node.py -f make
gyp: Undefined variable node_tag in /home/buildusr01/.nodebrew/src/v0.10.27/node-v0.10.27/node.gyp
make: *** [out/Makefile] Error 1
usage†
nodebrew ls | show version list(local) |
nodebrew ls-remote | show all version(remote) |
nodebrew ls
v0.12.0
current: none
nodebrew use v0.12.0
npm†
インストール済みパッケージ表示 | npm info grunt-cli |
バージョン指定してインストール | npm install -g npm@1.4.25 |
gruntインストール | npm install -g grunt-cli |
設定など†