Last active
June 7, 2017 11:46
-
-
Save stephanschubert/982bc643f0517d7a8eb8d6fec39fc333 to your computer and use it in GitHub Desktop.
Install specific `node` version with `brew` and `nvm`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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