Skip to content

Instantly share code, notes, and snippets.

@khell
khell / mac_node_setup.bash
Last active September 29, 2017 09:11
Setup Node via NVM and Yarn via Homebrew on macOS
# Setup NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# Install latest version of Node
nvm install node
nvm use node
# Setup Yarn and use the correct global bin directory