[Mac] brew update 出現 could not read Username 錯誤

[Mac] brew update 出現 could not read Username 錯誤

今天在更新 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.

 

(本頁面已被瀏覽過 1,220 次)

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料