今日使用mac的brew安装软件的时候,出现了一些异常,如下所示:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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`.
|
解决办法:
1
2
3
4
5
|
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
|
版权属于: 技术客
原文地址: https://www.sunjs.com/article/detail/23314c6767034591bb0836233e68ff4e.html
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。