2020-12-18 mac homebrew

How to setup node env using Homebrew on your Mac. This is a part of the preparation for Dec 23's session.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install node by brew command.

brew install node@14

Check if the actual version is 14.x.

node -v  #=> 14.15.2

If you see the default version, you can modify the link like below:

brew link --overwrite node@14

To install heroku cli.

brew tap heroku/brew && brew install heroku