Caused by: org.gradle.api.InvalidUserDataException: 无法添加任务“:client:test”,因为同名任务已经存在

Caused by: org.gradle.api.InvalidUserDataException: Cannot add task ':client:test' as a task with that name already exists

我无法使用 anuglar2 制作 grails 应用 运行。我使用以下命令创建了应用程序:

grails create-app <NAME> --profile angular2

当我尝试使用 (./gradlew bootRun --parallel) 启动它时,没有任何更改,我收到以下错误:

FAILURE: Build failed with an exception.

* Where:
Build file '/*********/client/build.gradle' line: 15

* What went wrong:
A problem occurred evaluating project ':client'.
> Cannot add task ':client:test' as a task with that name already exists.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

或更具体:

Caused by: org.gradle.api.InvalidUserDataException: Cannot add task ':client:test' as a task with that name already exists.

我目前运行宁:

我已经尝试更新 node.js 和 npm

错误是与 Grails 相关还是与节点设置有关?

问题与我的 ~/.gradle 文件夹有关。我删除了文件夹并 gradle 重新初始化。