gpt4 book ai didi

Grails 不被识别为内部或外部命令 (Windows 7)

转载 作者:行者123 更新时间:2023-12-02 09:24:22 24 4
gpt4 key购买 nike

我不知道我做错了什么...

首先,我下载了该文件夹并将其解压到 C:\:

enter image description here enter image description here

然后,将其设置为用户变量:

enter image description here

并将其添加到我的路径中:

enter image description here

甚至在重新启动 cmd 后,当我检查 grails -version 时,我得到了这个:

grails is not recognized as an internal or external command, operable program or batch file.

出了什么问题?感谢您的帮助。

最佳答案

首先在 CMD 命令行类型上尝试这个

回显%GRAILS_HOME%

然后输入 path 并查看 grails 路径是否类似于:

C:\Windows\system32;C:\Windows;C:\grails2.1.1

好的,如果在任何情况下我建议您将 GRAILS_HOME 替换为 C:\grails2.1.1

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Win‌​d owsPowerShell\v1.0\;%JAVA_HOME%\bin; %GRAILS_HOME%\bin;

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Win‌​d owsPowerShell\v1.0\;%JAVA_HOME%\bin; c:\grails2.1.1\bin;

然后注销或重新启动电脑,它应该可以工作,如果没有检查你的 grails 包中是否有名为 grails.bat 的文件,或者尝试通过提供 CMD 的确切路径来运行它!!

喜欢:

cmd > c:\grails2.1.1\bin\startGrails.bat 

关于Grails 不被识别为内部或外部命令 (Windows 7),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20045439/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com