美文网首页
brew command not found这样的错误

brew command not found这样的错误

作者: 迷恋代码 | 来源:发表于2021-08-08 09:07 被阅读0次

方法一:
命令行执行以下命令,不过国内好像有点问题,因为raw.githubusercontent.com这个网站被墙了,无法访问,会出现443的错误,所以建议使用方法二

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

方法二:
换源,然后根据提示操作就可以了。

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
本地软件库列表:brew ls
查找软件:brew search google(其中google替换为要查找的关键字)
查看brew版本:brew -v  更新brew版本:brew update
安装cask软件:brew install --cask firefox 把firefox换成你要安装的

相关文章

网友评论

      本文标题:brew command not found这样的错误

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