Error of “error: could not lock config file .git/config: Permission denied” occurs while installing Carthage

前端 未结 7 743
时光取名叫无心
时光取名叫无心 2020-12-24 01:38

I want to install carthage on my Mac OS using brew install carthage command. However, I get the following error:

touch: /usr/local/Homebrew/.git         


        
7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 02:07

    I have High Sierra and only this worked for me.

    1. sudo chown -R $(whoami):admin /usr/local/* && sudo chmod -R g+rwx /usr/local/*
    you should not write sudo before brew the right command is 
    2. brew install mysql
    

提交回复
热议问题