[Mac] brew update 出現 could not read Username 錯誤 | EPH 的程式日記 解决问题 关键 brew tap 查看 brew untap 删除

brew fatal: could not read Username for 'https://github.com': terminal prompts disabled

今天在更新 Homebrew 時突然出現一個從沒看過的錯誤,

說 could not read Username for https://github.com

testuser@localhost ~ $ brew update
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Error: Fetching /usr/local/Homebrew/Library/Taps/koekeishiya/homebrew-kwm failed!

查了一下,有人有過類似的問題 (todrobbins/Hombrew upgrade error),

說可能是這個出錯的 tap 的路徑有改變造成的…

用 brew tab 看一下目前有的 tap:

testuser@localhost ~ $ brew tap
caskroom/cask
caskroom/versions
homebrew/core
homebrew/dupes
homebrew/science
homebrew/services
koekeishiya/kwm

果然錯誤訊息中出現的 koekeishiya/kwm 是一個我有使用中的 tap,

但 kwm 我也不知道是啥,就先把這個 tap 移掉吧:

testuser@localhost ~ $ brew untap koekeishiya/kwm
Untapping koekeishiya/kwm... (67 files, 41.2KB)
Untapped 1 formula

移掉之後,更新 Homebrew 就沒有錯誤了:

testuser@localhost ~ $ brew update
Already up-to-date.

原网址: 访问
创建于: 2020-09-12 19:09:53
目录: default
标签: 无

请先后发表评论
  • 最新评论
  • 总共0条评论