PHPCan't use Subversion command line client:svn

在PHPstorm中,出现了一个Can't use Subversion command line client:svn的错误。

这是PHPstorm掉用svn的时候没有命令行客户端导致的,这个需要重新安装一下就可以了,重行运行安装程序

需要设置一个svn.exe的路径,而大多数人安装后的TortoiseSVN\bin都没有svn.exe这个文件

没设置好就用SVN功能的话会报错Cannot run program "svn"

  1. 这是PHPstorm掉用svn的时候没有命令行客户端导致的,这个需要重新安装一下就可以了,重行运行安装程序。

    PHPCan't use Subversion command line client:svn

  2. 选择“Modify”

    PHPCan't use Subversion command line client:svn

  3. svn默认安装时,command line client tools是没有安装的

    PHPCan't use Subversion command line client:svn

  4. 点击,选择“Entire feature will be installed on local hard drive”

    PHPCan't use Subversion command line client:svn

  5. 然后,进入下一步

    PHPCan't use Subversion command line client:svn

  6. 安装command line client tools

    PHPCan't use Subversion command line client:svn

  7. 等待安装完成

    PHPCan't use Subversion command line client:svn

  8. 需要设置一个svn.exe的路径,而大多数人安装后的TortoiseSVN\bin都没有svn.exe这个文件

  9. PHPCan't use Subversion command line client:svn

  10. 然后,进入控制面板->系统页面

  11. PHPCan't use Subversion command line client:svn

     

  12. 进入高级系统设置

    PHPCan't use Subversion command line client:svn

  13. 在环境变量中加入“C:\Program Files\TortoiseSVN\bin”

    PHPCan't use Subversion command line client:svn