What is the best/safest way to reinstall Homebrew?

前端 未结 6 1641
一向
一向 2020-12-02 06:21

I am getting issues with permissions in Homebrew: After I installed Node and tried to install npm using the curl command Homebrew tells you to use, it would fail due to EACC

6条回答
  •  一个人的身影
    2020-12-02 06:37

    Process is to clean up and then reinstall with the following commands:

    rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
    

    Notes:

    • Always check curl | bash (or ruby) commands before running them
    • http://brew.sh/ (for installation notes)
    • https://raw.githubusercontent.com/Homebrew/install/master/install (for clean up notes, see "Homebrew is already installed")

提交回复
热议问题