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

前端 未结 7 715
时光取名叫无心
时光取名叫无心 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:10

    In my case this command working:

      sudo chown -R $(whoami) $(brew --prefix)/*
    

    However, there is also an easier way of installing Carthage instead of commands line way. It is enough to download the latest package from this link and install it in a wizard way on you Mac.

    https://github.com/Carthage/Carthage/releases

    0 讨论(0)
提交回复
热议问题