【发布时间】:2019-05-06 19:18:48
【问题描述】:
我的所有 brew 命令(更新、配置、docker 等)在我的 Mac v10.14.2 上都抛出以下错误:
brew update
fatal: could not read Username for 'https://github.com': terminal prompts disabled
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Error: homebrew/homebrew-dupes does not exist! Run 'brew untap homebrew/homebrew-dupes'
homebrew/homebrew-x11 does not exist! Run 'brew untap homebrew/homebrew-x11'
我已经尝试了以下选项:
1. brew untap homebrew/homebrew-x11 -> 给出与报告相同的错误。
2. brew untap homebrew/homebrew-dupes -> 给出与报告相同的错误。
3. brew resintall 失败,与Failed during: /usr/local/bin/brew update --force 报告的错误相同
~/.bash_profile 中的brew相关条目:alias brew='brew update && brew'
关于如何摆脱这个问题的任何建议?
【问题讨论】:
-
关闭并重新打开您的终端或尝试其他终端应用程序,例如 iTerm。
-
@OrtomalaLokni 我正在使用 iTerm 并多次重启我的笔记本电脑,但仍未解决我的问题。
-
你可以编辑你的问题并添加
~/.bash_profile的内容吗? -
标准 macOS 终端是否也有同样的问题?
-
是的@OrtomalaLokni。我在使用 brew 的标准 MacOS 终端中遇到了同样的问题。