-
-
Save code4cake/2a37ff2c6d61cc9662265f81c4495de2 to your computer and use it in GitHub Desktop.
install nodejs with nodenv
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
#!/bin/sh | |
brew install nodenv yarn | |
nodenv install 6.7.0 | |
nodenv rehash | |
nodenv global 6.7.0 | |
echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(nodenv init -)"' >> ~/.bash_profile | |
source ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment