Error searching on GitHub: GitHub API Error: Bad credentials The GitHub credentials in the macOS key

a background

       On Mac, when using brew to install the software, the error message is as follows: Error searching on GitHub: GitHub API Error: Bad credentials The GitHub credentials in the macOS key, the specific error is as follows:

Error: GitHub {
   
    
    
  "message": "Bad credentials",
  "documentation_url": "https://developer.github.com/v3"
}
The GitHub credentials in the OS X keychain may be invalid.
Clear them with:
  printf "protocol=https\nhost=gith

Guess you like

Origin blog.csdn.net/whq19890827/article/details/129099934