mac下使用brew安裝出現 Error: Could not link
阿新 • • 發佈:2018-12-30
今日使用mac的brew安裝軟體的時候,出現了一些異常,如下所示:
12345678910111213141516 | Error: Could not link: /usr/local/etc/bash_completion .d /brew Please delete these paths and run `brew update`. Error: Could not link: /usr/local/share/zsh/site-functions/_brew Please delete these paths and run `brew update`. Error: Could not link: /usr/local/share/man/man1/brew .1 Please delete these paths and run `brew update`. Error: Could not link: /usr/local/share/doc/homebrew Please delete these paths and run `brew update`. |
解決辦法:
12345 | rm -rf /usr/local/etc/bash_completion .d /brew rm -rf /usr/local/share/zsh/site-functions/_brew rm -rf /usr/local/share/man/man1/brew .1 rm -rf /usr/local/share/doc/homebrew brew update |
版權屬於: 技術客
著作權歸作者所有。商業轉載請聯絡作者獲得授權,非商業轉載請註明出處。