IDEA在使用"svn"关联项目时报错Error:Cannot run program "svn" (in directory "路径XXXXXX"):CreateProcess error=2

今天在提交代码的时候,出现了一个这样的错误。
IDEA在使用"svn"关联项目时报错Error:Cannot run program “svn” (in directory “路径XXXXXX”):CreateProcess error=2。报该错误的主要原因是我的svn安装的时候没有安装command命令,需要重新安装下svn。

1.打开svn安装工具
IDEA在使用"svn"关联项目时报错Error:Cannot run program "svn" (in directory "路径XXXXXX"):CreateProcess error=2
点击下一步

2.点击下图中的Modify
IDEA在使用"svn"关联项目时报错Error:Cannot run program "svn" (in directory "路径XXXXXX"):CreateProcess error=2

IDEA在使用"svn"关联项目时报错Error:Cannot run program "svn" (in directory "路径XXXXXX"):CreateProcess error=2
3.点击上图的红色区域后,再点击will be installed on local hard drive;然后一直点next,完成安装。

重启idea后,此错误就没有了。