Mac 使用svn 報錯:zsh:mac zsh: command not found: svn完整解決方案
之前都是用的git,普遍也都是使用的git,但是為了應(yīng)對各種項目,svn也是需要安裝使用的。
使用的是hbuilder,安裝了svn插件卻一直無法克?。?br> 提示說mac zsh: command not found: svn,搜了一些資料發(fā)現(xiàn)M1需要額外執(zhí)行一些命令。
新版本的Mac需要安裝brew
安裝brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
這里選擇的是中科大的源。
接下來安裝svn
brew install subversion
初次會報錯
這個時候終端執(zhí)行這倆命令文章來源:http://www.zghlxwxcb.cn/news/detail-676159.html
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
之后再重新安裝svn可以看到成功安裝了
版本檢查正常
克隆代碼一切就正常了。文章來源地址http://www.zghlxwxcb.cn/news/detail-676159.html
到了這里,關(guān)于Mac 使用svn 報錯:zsh:mac zsh: command not found: svn完整解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!