Last active
February 1, 2017 02:02
-
-
Save yn-misaki/eee2bfcb79c99d07ea068c5930e82c3c to your computer and use it in GitHub Desktop.
Nodebrewを使ってNode.jsを超高速にインストールする方法 ref: http://qiita.com/yn-misaki/items/e92a47c662ea6d1236c1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 通常のインストール | |
$ nodebrew install <version> | |
# install-binaryを使ってインストール | |
$ nodebrew install-binary <version> | |
# 【並列化】install-binaryを使ってインストール | |
# 今回はマシンのコア数が2なので2を指定します。 | |
$ MAKE_OPTS="-j <Core>" nodebrew install-binary <version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 通常のインストール | |
$ nodebrew install <version> | |
# install-binaryを使ってインストール | |
$ nodebrew install-binary <version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -L git.io/nodebrew | perl - setup | |
$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc | |
$ source ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nodebrew use v4.4.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment