我通过sdkman在运行 Yosemite 的笔记本电脑上安装了 Grails 3.0.3 。
lightning-strike-2:server2 benstpierre$ grails
Usage:
create-app [NAME] --profile=web
create-plugin [NAME] --profile=web-plugin
| Error Error occurred running Grails CLI: null (Use --stacktrace to see the full trace)
lightning-strike-2:server2 benstpierre$
当我使用 --stacktrace 运行相同的命令时,我得到以下...
lightning-strike-2:server2 benstpierre$ grails --stacktrace
Usage:
create-app [NAME] --profile=web
create-plugin [NAME] --profile=web-plugin
| Error Error occurred running Grails CLI: null (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.NullPointerException
at org.grails.cli.profile.git.GitProfileRepository.getAllProfiles(GitProfileRepository.groovy:72)
at org.grails.cli.profile.commands.ListProfilesCommand.handle(ListProfilesCommand.groovy:43)
at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:177)
at org.grails.cli.GrailsCli.getBaseUsage(GrailsCli.groovy:122)
at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:166)
at org.grails.cli.GrailsCli.main(GrailsCli.groovy:99)
| Error Error occurred running Grails CLI: null
我不知道如何解决这个问题?