Brew update failed: untracked working tree files would be overwritten by merge

后端 未结 12 796
旧巷少年郎
旧巷少年郎 2020-12-12 09:03

Trying to update Homebrew with brew update I got the following error

error: The following untracked working tree files would be overwrittenby me         


        
12条回答
  •  执念已碎
    2020-12-12 09:33

    I had a similar issue where my brew package library got downloaded as a root user and then I was not able to run brew update as git would complain about not able to merge the file.

    Solution was to do :-

    sudo chown -R  /usr/local/Library
    

提交回复
热议问题