Skip to content

Instantly share code, notes, and snippets.

@givanse
Last active July 20, 2017 18:46
Show Gist options
  • Save givanse/6da3348d49f1025dc263649305ea5c90 to your computer and use it in GitHub Desktop.
Save givanse/6da3348d49f1025dc263649305ea5c90 to your computer and use it in GitHub Desktop.
Home Mac

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Node through nvm

# the script setup-node.sh is available within this gist
chmod u+x setup-node.sh
./setup-node.sh

Verify it worked:

node -v
v7.X.X
#!/bin/bash
set -e
mkdir ~/.nvm
export NVM_DIR=~/.nvm
. $(brew --prefix nvm)/nvm.sh
brew install nvm
nvm install node
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment