我无法让 grails 应用程序与 anuglar2 一起运行。我使用以下命令创建了该应用程序:
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 相关还是与 Node 设置相关?
问题与我的 ~/.gradle 文件夹有关。我删除了该文件夹并重新初始化了 gradle。
我是一名优秀的程序员,十分优秀!