mac中brew update出错:
brew update error: could not lock config file .git/config: Permission denied
搜:
brew update error could not lock config file .git/config: Permission denied
amazon ec2 – git error "could not lock config file .git/config permission denied" – Stack Overflow
lion – Homebrew permissions & multiple users needing to brew update – Ask Different
后来参考:
lion – Homebrew permissions & multiple users needing to brew update – Ask Different
去执行:
[总结]
sudo chgrp -R admin /usr/local sudo chmod -R g+w /usr/local
(不用去管/Library/Caches/Homebrew,因为找不到对应路径)
然后就可以继续正常的:
brew update
了。
转载请注明:在路上 » [已解决]brew update出错:error: could not lock config file .git/config: Permission denied