brew安装jaeger时github凭证失效

安装jaeger报错

brew install jaeger
Warning: No available formula or cask with the name "jaeger".

==> Searching for similarly named formulae...

Error: No similarly named formulae found.

==> Searching for a previously deleted formula (in the last month)...

Error: No previously deleted formula found.

==> Searching taps on GitHub...

Warning: Error searching on GitHub: GitHub API Error: Requires authentication

The GitHub credentials in the macOS keychain may be invalid.

Clear them with:

printf "protocol=https\nhost=github.com\n" | git credential-osxkeychain erase

Create a GitHub personal access token:

https://github.com/settings/tokens/new?scopes=gist,public_repo,workflow\&description=Homebrew

echo 'export HOMEBREW_GITHUB_API_TOKEN=your_token_here' >> ~/.zshrc

Error: No formulae found in taps.

原因

github凭证失效

解决

跟着报错提示走就行

  1. 清除无效的凭证

    printf "protocol=https\nhost=github.com\n" | git credential-osxkeychain erase

  2. github创建新凭证

    https://github.com/settings/tokens/new?scopes=gist,public_repo,workflow\&description=Homebrew

    已经默认勾选好,直接生成就行

    配置凭证,上图的红色部分替换到下面的token

    echo 'export HOMEBREW_GITHUB_API_TOKEN=your_token_here' >> ~/.zshrc

    重新加载配置文件

    source ~/.zshrc

虽然,还是没找到...

但是,以后找别的包就能用了...

最后,还是用了docker...

docker run -itd -d --name jaeger -p 16686:16686 -p 4317:4317 -p 4318:4318 -p 5778:5778 -p 9411:9411 jaegertracing/all-in-one

相关推荐
我有一棵树4 小时前
一、GitHub 的 WIP 功能简介
github·开发·前端、
想用offer打牌5 小时前
如何开启第一次开源贡献之路?
java·后端·面试·开源·github
week_泽10 小时前
PicGo图床搭载Github,上传博客图片
github
CoderJia程序员甲13 小时前
GitHub 热榜项目 - 日榜(2025-12-26)
开源·大模型·llm·github·ai教程
星际编程喵13 小时前
研发流程规范:Git Commit 书写标准
git·gitee·github·gitcode
阿里嘎多学长16 小时前
2025-12-25 GitHub 热点项目精选
开发语言·程序员·github·代码托管
郑同学zxc17 小时前
AI 代码助手:CodeGeex、RooCode 和 GitHub Copilot 对比
github·copilot
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2025-12-24)
ai·开源·llm·github
逛逛GitHub2 天前
国产AI大模型 Minimax M2.1效果相当惊艳,赶紧试试
github
-拟墨画扇-2 天前
Git | 文件提交操作
git·gitee·github·gitcode