Homebrew is a popular package manager for Mac. Many developer tools recommend it as the default install method.

Open the terminal in VS Code and paste this:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
It'll ask for your Mac password (the one you use to log in to your Mac on reboot). You won't see characters as you type — that's normal. Press Enter when done.


The install takes a minute or two. When it finishes, restart VS Code so the terminal picks up the change.
After restarting VS Code, verify that brew command is installed:
brew -v
You should see something like Homebrew 5.x.x — you're all set.