1. 程式人生 > 實用技巧 >MacOS svn:E230001 Can't use Subversion command line client: svn The path to the Subversion executable is probably wrong.

MacOS svn:E230001 Can't use Subversion command line client: svn The path to the Subversion executable is probably wrong.

注意:本文僅針對於 MacOS 系統。

錯誤資訊如下:

Can'tuseSubversioncommandlineclient:svn
ThepathtotheSubversionexecutableisprobablywrong.Fixit.

好傢伙,今天發現 IDEA 中的 SVN 突然不能用了...

因為之前的 SVN 是使用 Homebrew 安裝了,懷疑是不是出問題了。

控制檯執行:svn --version

??? 貌似跟升級系統版本有關,重新裝一下吧,執行如下命令:

brewinstallsvn

執行該命令後,進入漫長的等待...

安裝完之後重新執行 svn --version

檢視一下:

新問題來了:

svn:E170013:UnabletoconnecttoarepositoryatURL'https://賬號@192.168.40.219/專案路徑'
svn:E230001:ServerSSLcertificateverificationfailed:certificateissuedforadifferenthostname,issuerisnottrusted

SVN 是重新裝上了,但是 IDEA 中還是連不上呀,提示伺服器SSL證書驗證失敗...

命令列繼續執行如下格式內容:

svnlshttps://倉庫地址/專案路徑--usernamesvn使用者名稱--passwordsvn密碼

舉例:

svnlshttps://192.168.40.219/svn/project--usernameniceyoo--password123456

看到如上提示內容時,輸入 p

這時候再在 IDEA 中連線試試,這時候還可能會彈出驗證,驗證即可。