简体   繁体   English

Brew Tap:身份验证失败

[英]Brew Tap: Authentication failed

Env: Mac Bash, When I tried to tap into a repo ( at first an organisation repo, then my own private repo, all got the same auth failed error): Env:Mac Bash,当我尝试访问一个存储库时(首先是一个组织存储库,然后是我自己的私有存储库,都遇到了相同的身份验证失败错误):

It seems like wrong user name and password.好像是错误的用户名和密码。 However I used exactly the user name and password when I log into Github.但是,我在登录 Github 时完全使用了用户名和密码。 I confirmed several times.我确认了几次。 Could someone enlighten me what is wrong here?有人可以启发我这里有什么问题吗?

==> 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.

Got the same issue with the following command : brew install mongodb使用以下命令遇到同样的问题:brew install mongodb

  • brew is checking in github. brew 正在检查 github。

It was fixed adding the precise version to install:已修复添加要安装的精确版本:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM