Error: GitHub
The GitHub credentials in the macOS keychain may be invalid.
Clear them with:
printf "protocol=https\nhost=github.com\n" | git credential-osxkeychain erase
Or create a personal access token:
https://github.com/settings/tokens/new?scopes=gist,public_repo&description=Homebrew
and then set the token as: export HOMEBREW_GITHUB_API_TOKEN="your_new_token"
解決辦法
1 打開發網址
https://github.com/settings/tokens/new?scopes=gist,public_repo&description=Homebrew
2 點擊最下方的 Generate token
4 生成token
5 回到終端 執行
export HOMEBREW_GITHUB_API_TOKEN="生成的token"
6OK