Homebrew is a package manager for macOS that enables you to install various software components and dependencies more easily.
To install Homebrew, go to their website: https://brew.sh
For your convenience, I have pasted the installation command in this document. However, they may make changes to it so if the following doesn't work, refer to Homebrew website.