nodebrewでio.jsをインストール
nodebrew が 2015-01-15 のコミットで io.js に対応してました。
すでに nodebrew をインストール済の人は selfupdate
する必要があります。
$ nodebrew selfupdate
$ nodebrew ls-remote (略) v0.10.32 v0.10.33 v0.10.34 v0.10.35 v0.11.0 v0.11.1 v0.11.2 v0.11.3 v0.11.4 v0.11.5 v0.11.6 v0.11.7 v0.11.8 v0.11.9 v0.11.10 v0.11.11 v0.11.12 v0.11.13 v0.11.14 v0.11.15 io@v1.0.0 io@v1.0.1 io@v1.0.2 io@v1.0.3
1月23日時点で v1.0.3
が最新ですが、io@latest
や io@v1.0.x
と書けば自動で最新が入ります。
$ nodebrew install-binary io@latest
$ nodebrew use io@latest use io@v1.0.3 $ node --version v1.0.3 $ node --v8-options | grep harmony --es_staging (enable all completed harmony features) --harmony (enable all completed harmony features) --harmony_shipping (enable all shipped harmony fetaures) --harmony_modules (enable "harmony modules (implies block scoping)" (in progress)) --harmony_arrays (enable "harmony array methods" (in progress)) --harmony_array_includes (enable "harmony Array.prototype.includes" (in progress)) --harmony_regexps (enable "harmony regular expression extensions" (in progress)) --harmony_arrow_functions (enable "harmony arrow functions" (in progress)) --harmony_proxies (enable "harmony proxies" (in progress)) --harmony_sloppy (enable "harmony features in sloppy mode" (in progress)) --harmony_unicode (enable "harmony unicode escapes" (in progress)) --harmony_tostring (enable "harmony toString") --harmony_classes (enable "harmony classes (implies block scoping & object literal extension)") --harmony_object_literals (enable "harmony object literal extensions") --harmony_numeric_literals (enable "harmony numeric literals") --harmony_strings (enable "harmony string methods") --harmony_scoping (enable "harmony block scoping") --harmony_templates (enable "harmony template literals")