1. Visit the home page The Missing Package Manager for macOS (or Linux) — Homebrew , it will tell you what to type in the run to install
2. (such as MAC) Enter in Terminal: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"