Reference: https://www.cnblogs.com/jacktu/p/12868222.html
Homebrew is a manager for macOS (or Linux) missing packages
Normally executed on the command line:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
However, due to the domestic network firewall problem, GitHub
the raw.githubusercontent.com
domain name resolution is polluted and cannot be downloaded.
Solution
Use the Homebrew domestic source installation script:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Also refer to other sources: https://gitee.com/cunkai/HomebrewCN