From: http://c.n-di.com/2017/07/17/1827.html
The copyright belongs to the original author!
Error: could not link: / usr / local / etc / Bash_ completion.d/brew
Update brew and report an error;
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`.
terms of settlement
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
Read More:
- Solve the problem of warning in sourcetree: templates not found / usr / local / git / share / git core / templates
- brew Error: Could not create /usr/local/Cellar
- Error: Failure while executing; `git config –local –replace-all homebrew.analyticsmessage true
- -Bash: /usr/local/apache-maven-3.6.3/bin/mvn: insufficient permissions
- ln: failed to create symbolic link ‘/usr/bin/pip’: File exists
- Cannot remove entries from nonexistent file /usr/local/bin/anaconda2/lib/python2.7/site-packages/eas
- NPM ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / / book/gitbook/git
- Error: No such keg: /usr/local/Cellar/node&install nvm&brew installation&Oh my zsh.git installation&git set alias&No bundle URL prese
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / /_ book/gitbook/git
- Error: no such keg: / usr / local / cellular / node & install NVM & Brew install & oh my Zsh. Git install & git set alias & no bundle URL press
- Error in installing Matplotlib Library: permissionerror: [errno 13] permission denied: ‘/ usr / local / lib / python3.6’
- FCOS No CUDA runtime is found, using CUDA_HOME=’/usr/local/cuda-10.0′
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- nginx: [error] open() “/usr/local/var/run/nginx.pid” failed (2: No such file or directory)
- Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’ npm ERR! at Error (native)
- Local can link to the server database, upload jar package to the server will report an error
- Mac installation opencv brew tap homebrew / Science
- ls: cannot access /usr/sbin/smartctl: No such file or directory /usr/sbin/smartctl not found
- Homebrew reports an error after upgrading MacOS to Big Sur