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

相关推荐
徐小夕7 小时前
万字拆解 JitWord:企业级实时协同文档底层架构 + 大模型 AI 融合完整实践
前端·vue.js·github
码流怪侠9 小时前
【GitHub】Ponytail:给 AI 编码代理植入“懒人资深开发者“灵魂的开源插件深度拆解
程序员·github·ai编程
齐翊9 小时前
怎么确认 AI 看懂了你的提示词?
人工智能·github·ai编程
李小庆14 小时前
Sowork AI Agent 编程助手教程 :第一章 Python环境搭建与Sowork项目克隆学习目标
github
OpenTiny社区1 天前
🎨 看完 GenUI SDK 源码我悟了!
前端·vue.js·github
千寻girling1 天前
一份不可多得的《微服务》教程
后端·面试·github
霜落长河2 天前
用Gemini提升React代码调试效率的教程
github
英勇无比的消炎药2 天前
TinyRobot 源码深度分析:OpenTiny 的 AI 对话组件库
前端·vue.js·github
逛逛GitHub2 天前
慢慢吃掉你的 Claude Code,在终端里养一只黑洞。
github
jump_jump3 天前
为了重玩金庸群侠传,我研究了一下 Ruffle 怎么复活 Flash
游戏·rust·github