Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyosukeKamei/1d01acd7b6c9115756c68d901438cc7a to your computer and use it in GitHub Desktop.
Save RyosukeKamei/1d01acd7b6c9115756c68d901438cc7a to your computer and use it in GitHub Desktop.
Node.jsをMac OSにインストール 動画付き! ref: https://qiita.com/RyosukeKamei/items/5a349ba1f7381f4129fd
$ vim .bash_profile
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi
$ echo 'export PATH=$PATH:/Users/user/.nodebrew/node/v9.2.0/bin/node' >> ~/.bashrc
$ nodebrew install-binary latest
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ less ~/.bashrc
export PATH=$PATH:/Users/user/.nodebrew/node/v9.2.0/bin
/Users/user/.bashrc (END)
$ nodebrew list
v9.2.0
current: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment