Mac homebrew notes

Original link:https://blog.kelu.org/tech/2023/05/21/mac-brew-remark.html

This article will be kept updated. Because it is not a one-time tool. After encountering a homebrew problem, I recorded it here.

  1. view configuration

     brew config 

    image-20230522 AM114815453

  2. Update brew information

     brew update 

    image-20230522 PM00757587

    Encountered an error: `fetching failed`. . .

    The reason is that the clash port running on my computer has a problem with git being configured as a proxy for the sock5 port. To change to use http proxy port

     git config --global http.https://github.com.proxy 'http://127.0.0.1:7890'

This article is transferred from:https://blog.kelu.org/tech/2023/05/21/mac-brew-remark.html
This site is only for collection, and the copyright belongs to the original author.