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

相关推荐
Cynthia-石头3 小时前
Git Github Gitee GitLab
git·gitee·github
march of Time17 小时前
go的工具库:github.com/expr-lang/expr
开发语言·golang·github
遇见火星18 小时前
【运维实战】Rsync将一台主Web服务器上的文件和目录同步到另一台备份服务器!
运维·服务器·github·rsync
独立开阀者_FwtCoder20 小时前
11 个 JavaScript 杀手脚本,用于自动执行日常任务
前端·javascript·github
shut up21 小时前
Git的使用技巧
gitee·github·shell
NON-JUDGMENTAL1 天前
从零开始,学会上传,更新,维护github仓库
github
独立开阀者_FwtCoder1 天前
使用这个新的 ECMAScript 运算符告别 Try/Catch!
前端·javascript·github
寻月隐君1 天前
Rust 所有权:从内存管理到生产力释放
后端·rust·github
FreeBuf_1 天前
黑客利用GitHub现成工具通过DevOps API发起加密货币挖矿攻击
运维·github·devops
偶尔的鱼2 天前
AI Agent 框架大盘点:Coze、Dify 到 LangChain,哪款是你的菜?
前端·github·ai编程