Last active
October 25, 2015 23:22
-
-
Save richardgill/4b13958b6ad0267f8e07 to your computer and use it in GitHub Desktop.
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 install nvm #install the node version manager | |
# Make sure it gets loaded every time a terminal starts | |
echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bash_profile | |
# Break down! | |
# echo means print out what follows | |
# $(brew --prefix nvm) will get evaluated as if you typed it in to a command line. | |
# >> ~.bash_profile means: add whatever the left hand side of >> evaluated to, to the end of the ~/.bash_profile file. | |
# ~: means home directory. | |
# ~/.bash_profile is a file which runs every time you start a new terminal. | |
# Whole thing. Add "source <whatever brew --prefix nvm evals to>>/nvm.sh" to the end of the <home_dir>/.bash_profile file. | |
# you can see what happened by running cat ~/.bash_profile (the last line of that file you just added). | |
nvm install v4.2.1 #install the latest version of node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment