linux homebrew fix GitHub Bad credentials:HOMEBREW_GITHUB_API_TOKEN

If you using linux homebrew to search some software package, you may face problem.

$ brew search julia


Warning: Error searching on GitHub: GitHub Bad credentials:HOMEBREW_GITHUB_API_TOKEN may be invalid or expired; check:

Error: GitHub Bad credentials:HOMEBREW_GITHUB_API_TOKEN may be invalid or expired; check:
https://github.com/settings/tokens

 

The way to fix this problem

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\"

Post: 1550193027

Views: 342

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by GoSense RSS