nvmã§nodeã¤ã³ã¹ãã¼ã«(ãã¨ã¢ã³ã¤ã³ã¹ãã¼ã«æ¹æ³)
nvm(Node Version Manager)でNode.js をインストールしよう♪ | TM Life
Node.js のパッケージ管理ツール npm と package.json の使い方 | TM Life
ãã®ããã°è¦ã¦nvmã便å©ããã ã£ãã®ã§ãä»ã¾ã§ã®nodeãã¢ã³ã¤ã³ã¹ãã¼ã«ãã¦ãnvmã§nodeãã¤ã³ã¹ãã¼ã«ããã
nodeã®ã¢ã³ã¤ã³ã¹ãã¼ã«
ã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ããªã¸ç§»åãã¦ãuninstallãå®è¡ããã
$ cd /usr/local/src $ sudo make uninstall
nvmã§nodeã¤ã³ã¹ãã¼ã«
# gitããã¯ãã¼ã³ $ git clone https://github.com/creationix/nvm.git ~/.nvm # nvmãæå¹ã«ãã $ . ~/.nvm/nvm.sh # nodeã®ã¤ã³ã¹ãã¼ã« $ nvm install v0.10.17
ããã§ãnodeãnpmã使ããããã«ãªã£ãã
ãã°ã¢ã¦ãããã¨ãnvmãæå¹ã§ãªããªã£ã¦ããã©ãããã®ã§ã.bash_profileã«ã¹ã¯ãªããæ¸ãã¨ãã
source ~/.nvm/nvm.sh nvm use "v0.10.17"