cocoapods相关

(Homebrew) macOS系统安装Homebrew

2021-10-03  本文已影响0人  布呐呐u

先卸载

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

重新安装

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

常用指令

brew -v
brew ls
brew upgrade
brew cleanup

查找软件 google

brew search google

安装软件 wget

brew install wget

诊断检查 doctor

brew doctor

更换源

git config --global --add safe.directory /opt/homebrew
export HOMEBREW_BREW_GIT_REMOTE=https://mirrors.ustc.edu.cn/brew.git
export HOMEBREW_CORE_GIT_REMOTE=https://mirrors.ustc.edu.cn/homebrew-core.git
brew tap --custom-remote --force-auto-update homebrew/cask https://mirrors.ustc.edu.cn/homebrew-cask.git
上一篇下一篇

猜你喜欢

热点阅读