Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added NodeJS per Macy Huang's Recommendation

...

Code Block
languagebash
titleHomebrew
collapsetrue
# navigate to your home directory
cd ~/

# create a homebrew folder in your home directory
mkdir homebrew

# download homebrew software into your new folder
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

eval "$(homebrew/bin/brew shellenv)"
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"

# add homebrew to zsh shell
echo 'export PATH="/Users/username/homebrew/bin:$PATH"' >> ~/.zshrc

# add homebrew to bash shell
echo 'export PATH="/Users/username/homebrew/bin:$PATH"' >> ~/.bash_profile

# if homebrew doesn't work immediately, don't worry, you just have to source the new path
source ~/.zshrc # if you are using zsh
source ~/.bash_profile # if you are using bash

# you can test with the following
brew --version

NodeJS

NodeJS and NPM can be installed with Node Version Manager.  Complete documentation can be found at https://github.com/nvm-sh/nvm, but the following is the minimum required to install and use NodeJS.

Code Block
languagebash
titleNodeJS
collapsetrue
# install Node Version Manager (NVM)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

# install and use the latest stable version of NodeJS
nvm install --lts

# check install
nvm --version

# if the install didn't work, you may have to add the following to ~/.zshrc or ~/.bash_profile
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm


Java

With homebrew installed, you can install Java with just a couple commands.

...