When using brew install xxx to install the software, brew will put the temporary download file in the cache directory, which can be accessed through
brew --cache View the downloaded cache directory
The default cache directory is
/Users/***/Library/Caches/Homebrew/Cask/xxxx
If you dislike the slow download speed of the native, you can download the file with other download tools first, change the name according to the rules, overwrite the file with the same name in this directory, and finally restart the installation from the command line terminal.