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

相关推荐
Gladiator5759 小时前
博客记录-day145-力扣+编程题
github
曼陀罗12 小时前
用PR merge的时候出现冲突怎么办?
git·github
小华同学ai13 小时前
6.4K star!轻松搞定专业领域大模型推理,这个知识增强框架绝了!
前端·github
uhakadotcom14 小时前
Google Cloud IoT 平台入门:基础架构与示例详解
后端·面试·github
uhakadotcom15 小时前
程序化广告十年总结:通俗易懂的基础知识与实战案例解析
后端·面试·github
小华同学ai15 小时前
29.1K star!免费接入GPT-4/DeepSeek等顶级大模型,这个开源API神器绝了!
github
uhakadotcom17 小时前
如何在亚马逊Inferentia2芯片上部署和监控DeepSeek-R1蒸馏模型
算法·面试·github
逛逛GitHub17 小时前
这个 MCP 大本营发布,1400+ 工具等你来接。
人工智能·github
uhakadotcom18 小时前
PyTorch 2.0 一行代码加速模型,简单易懂的基础介绍和实用示例
后端·面试·github
Andy32219 小时前
027 期 数据安全新招!你的数据守护神来了?
安全·github