Last active
February 14, 2019 15:37
-
-
Save YasushiKobayashi/55e5d76cdb9cc2f7d2cd60a53ba2377f to your computer and use it in GitHub Desktop.
install nodejs with nodenv
This file contains hidden or 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