【问题标题】:Brew Tap: Authentication failedBrew Tap:身份验证失败
【发布时间】:2020-01-28 09:15:03
【问题描述】:

环境:Mac Bash, 当我尝试进入一个 repo 时(首先是一个组织 repo,然后是我自己的私人 repo,都得到了相同的 auth failed 错误):

似乎用户名和密码错误。但是,当我登录 Github 时,我使用的正是用户名和密码。我确认了好几次。有人能告诉我这里出了什么问题吗?

==> Tapping <my repo name>
Cloning into '/usr/local/Homebrew/Library/Taps/<my user name>/homebrew-<my repo name>'...
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
Username for 'https://github.com': <my github user name>
Password for 'https://<my user name>@github.com':
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
remote: Invalid username or password.
fatal: Authentication failed for 'https://<my user name>/homebrew-<my repo name>'
Error: Failure while executing; `git clone https://github.com/<my user name>/homebrew-<my repo name> /usr/local/Homebrew/Library/Taps/<my user name>/homebrew-<my repo name> --depth=1` exited with 128.

【问题讨论】:

  • 这不是编程问题,而是关于使用某些软件的问题。因此,它更适合例如superuser.com。
  • which git-credential-osxkeychain 说什么?

标签: git github homebrew


【解决方案1】:

使用以下命令遇到了同样的问题:brew install mongodb

  • brew 正在检查 github。

已修复添加要安装的精确版本:

  • brew install mongodb/brew/mongodb-community@4.2

【讨论】:

    猜你喜欢
    • 2014-01-24
    • 1970-01-01
    • 2017-11-27
    • 1970-01-01
    • 1970-01-01
    • 2022-01-11
    • 2014-05-23
    相关资源
    最近更新 更多