問題描述:
通過Homebrew安裝cocoapods時,輸入命令行?
brew install cocoapods
出現(xiàn)如下報錯:
zsh: command not found: brew
zsh:找不到命令:brew
問題解決:
使用以下命令,重新安裝Homebrew.
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
?選擇中科大下載源,輸入開機(jī)密碼.
?輸入Y繼續(xù)克隆Core等(不需要可以不克隆),選擇中科大國內(nèi)源國內(nèi)鏡像.
?重啟終端.輸入
brew install cocoapods
發(fā)現(xiàn)可以成功下載cocoapods了!
文章來源:http://www.zghlxwxcb.cn/news/detail-697210.html
鳴謝:https://blog.csdn.net/Darling_qi/article/details/122239824文章來源地址http://www.zghlxwxcb.cn/news/detail-697210.html
到了這里,關(guān)于Homebrew安裝cocoapods: zsh: command not found: brew解決方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!