1. Install brew if you haven’t installed.
Go to https://brew.sh and use the command shared in the website to install the brew.
2. Use the following command to install curl.
brew install curl
Note:
If you get the following error, you have to update the PATH.
zsh: command not found: brew
Run this command and then execute the brew command.
export PATH=/opt/homebrew/bin:$PATH