【发布时间】:2015-01-09 06:18:53
【问题描述】:
我正在尝试使用 Git shell 从 Git 在我的 Windows PC 上构建存储库。 存储库的名称是“newrep”。
当我输入命令“ant”时,它会抛出以下错误 -
The term ant is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a patch was included, verify that the path is correct and try again.
At line: 1 char :4
+ ant <<<< + CategoryInfo :ObjectNotFound: (ant:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
我该如何解决这个错误?
【问题讨论】:
-
你安装Ant了吗?
-
是的,它安装在C盘,我的github仓库在F盘。
-
PATH环境变量中是否列出了Ant二进制文件的目录?
-
是的,那不见了。谢谢
标签: git shell ant repository