Skip to content

Instantly share code, notes, and snippets.

@stephanschubert
Last active June 7, 2017 11:46
Show Gist options
  • Save stephanschubert/982bc643f0517d7a8eb8d6fec39fc333 to your computer and use it in GitHub Desktop.
Save stephanschubert/982bc643f0517d7a8eb8d6fec39fc333 to your computer and use it in GitHub Desktop.
Install specific `node` version with `brew` and `nvm`
brew uninstall --force --ignore-dependencies node
brew prune
rm -f /usr/local/bin/npm /usr/local/lib/dtrace/node.d
rm -rf ~/.npm
brew install nvm
mkdir ~/.nvm
nvm install v7.9.0
# Add to .zshrc
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment