Homebrew install fails while copying files

后端 未结 4 1506
醉梦人生
醉梦人生 2021-02-19 02:18

I run this:

/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"

I get prompt:



        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-19 02:22

    You are getting permission denied when downloading the files into /usr/local.

    This folder often belongs to root. This is a known issue with brew. Fix it by doing

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

    and then re-run the installer.

提交回复
热议问题