Skip to content

Instantly share code, notes, and snippets.

@yn-misaki
Last active February 1, 2017 02:02
Show Gist options
  • Save yn-misaki/eee2bfcb79c99d07ea068c5930e82c3c to your computer and use it in GitHub Desktop.
Save yn-misaki/eee2bfcb79c99d07ea068c5930e82c3c to your computer and use it in GitHub Desktop.
Nodebrewを使ってNode.jsを超高速にインストールする方法 ref: http://qiita.com/yn-misaki/items/e92a47c662ea6d1236c1
# 通常のインストール
$ nodebrew install <version>
# install-binaryを使ってインストール
$ nodebrew install-binary <version>
# 【並列化】install-binaryを使ってインストール
# 今回はマシンのコア数が2なので2を指定します。
$ MAKE_OPTS="-j <Core>" nodebrew install-binary <version>
# 通常のインストール
$ nodebrew install <version>
# install-binaryを使ってインストール
$ nodebrew install-binary <version>
# OS
$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
# memory
$ cat /proc/meminfo | grep Total
MemTotal: 1884064 kB
# core数
$ cat /proc/cpuinfo | grep "processor" | wc -l
2
$ curl -L git.io/nodebrew | perl - setup
$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc
$ source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment