Skip to content

Instantly share code, notes, and snippets.

@matsuda
Created October 4, 2017 06:22
Show Gist options
  • Save matsuda/c75e5f38f61621a7881a77e1fe8d4df7 to your computer and use it in GitHub Desktop.
Save matsuda/c75e5f38f61621a7881a77e1fe8d4df7 to your computer and use it in GitHub Desktop.
Setup node.js
$ brew install nodebrew
==> Downloading https://github.com/hokaccha/nodebrew/archive/v0.9.7.tar.gz
==> Downloading from https://codeload.github.com/hokaccha/nodebrew/tar.gz/v0.9.7
######################################################################## 100.0%
==> Caveats
You need to manually run setup_dirs to create directories required by nodebrew:
/usr/local/opt/nodebrew/bin/nodebrew setup_dirs
Add path:
export PATH=$HOME/.nodebrew/current/bin:$PATH
To use Homebrew's directories rather than ~/.nodebrew add to your profile:
export NODEBREW_ROOT=/usr/local/var/nodebrew
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/nodebrew/0.9.7: 8 files, 38.2KB, built in 6 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment