MacM1安裝homebrew步驟
1.在mac終端運行:/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
在這一步會提示要安裝xcode,沒有的話需要先安裝或者更新到最新版
2.會出現(xiàn)安裝選項:選擇1、中科大下載源;按照命令輸入y,及開機密碼
3.安裝完后還有選項:選擇1、中科大下載源
4.需要重啟終端/或者輸入 source /Users/zjing/.zprofile 運行即可
5.運行brew -v 出現(xiàn)以下情況
Homebrew 4.0.6-15-g8e13a6e
fatal: detected dubious ownership in repository at '/opt/homebrew/Library/Taps/homebrew/homebrew-core'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
Homebrew/homebrew-core (no Git repository)
fatal: detected dubious ownership in repository at '/opt/homebrew/Library/Taps/homebrew/homebrew-cask'
To add an exception for this directory, call:
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
Homebrew/homebrew-cask (no Git repository)
輸入
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
6、再次輸入brew -v顯示如下,證明安裝成功文章來源:http://www.zghlxwxcb.cn/news/detail-716563.html
Homebrew 4.0.6-15-g8e13a6e
Homebrew/homebrew-core (git revision 80b527e6314; last commit 2023-03-12)
Homebrew/homebrew-cask (git revision fee2067879; last commit 2023-03-12)
7、在終端使用brew install fig 命令安裝自動補全工具,下載好回桌面點擊fig安裝,途中如果有問題就可以 brew uninstall fig,重新安裝。在保證網(wǎng)絡(luò)好的情況下安裝軟件。文章來源地址http://www.zghlxwxcb.cn/news/detail-716563.html
到了這里,關(guān)于Mac M1安裝homebrew步驟的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!