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

相关推荐
DeepSeek-大模型系统教程5 小时前
推荐 7 个本周 yyds 的 GitHub 项目。
人工智能·ai·语言模型·大模型·github·ai大模型·大模型学习
ai小鬼头8 小时前
AIStarter最新版怎么卸载AI项目?一键删除操作指南(附路径设置技巧)
前端·后端·github
不午睡的探索者16 小时前
告别性能瓶颈!Python 量化工程师,进击 C++ 高性能量化交易的“必修课”!
c++·github
光溯星河16 小时前
【实践手记】Git重写已提交代码历史信息
后端·github
独立开阀者_FwtCoder16 小时前
URL地址末尾加不加 "/" 有什么区别
前端·javascript·github
独立开阀者_FwtCoder16 小时前
Vue3 新特性:原来watch 也能“暂停”和“恢复”了!
前端·javascript·github
寻月隐君17 小时前
告别 Vec!掌握 Rust bytes 库,解锁零拷贝的真正威力
后端·rust·github
inhere20 小时前
gookit/goutil v0.7.0 新版本发布:模块调整与功能增强
开源·go·github
用户6210245309221 小时前
React:当UI开发从「搬砖」变成「搭乐高」的魔法时刻!
github
用户39183841721121 小时前
Jupyter Notebook:不只是个笔记本,而是你的科学计算驾驶舱!
github