Skip to content

Instantly share code, notes, and snippets.

@code4cake
Forked from YasushiKobayashi/nodenv.sh
Created February 14, 2019 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save code4cake/2a37ff2c6d61cc9662265f81c4495de2 to your computer and use it in GitHub Desktop.
Save code4cake/2a37ff2c6d61cc9662265f81c4495de2 to your computer and use it in GitHub Desktop.
install nodejs with nodenv
#!/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