美文网首页
Mac安装Homebrew

Mac安装Homebrew

作者: 在努力的Jie | 来源:发表于2020-02-03 01:55 被阅读0次

    Mac的包管理工具homebrew。相当于linux的yum方便好用
    常用命令
    搜索:brew search SoftwareName
    更新:brew install SoftwareName
    卸载:brew remove SoftwareName

    1. 安装Homebrew
      https://www.jianshu.com/p/86fbfca82cd6
      注意是否处于根目录。
      install homebrew.png
    2. 报错 fatal: unable to access 'https://github.com/Homebrew/brew/': Failed to connect to github.com port 443: Operation timed out
      pic2.png
      解决方案:
      git config --global --unset http.proxy
      git config --global --unset https.proxy

    参考:https://www.jianshu.com/p/fb3afccd32e1

    git 设置和取消代理:https://blog.csdn.net/omgkill/article/details/81903279

    1. 报错 error: RPC failed; curl 18 transfer closed with outstanding read data remaining
      fatal: The remote end hung up unexpectedly
      fatal: early EOF
      fatal: index-pack failed


      pic3.png

      说明pull的文件过大,需要增大缓存
      执行以下操作:
      git config --global http.postBuffer 524288000

    git config --list查看是否生效
    重新git clone 即可成功


    Installation successful.png

    参考:https://blog.csdn.net/dzhongjie/article/details/81152983

    相关文章

      网友评论

          本文标题:Mac安装Homebrew

          本文链接:https://www.haomeiwen.com/subject/bwbcxhtx.html