我无法使用anuglar2运行grails app。我使用以下命令创建了应用程序:
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有关还是与节点设置有关?
答案 0 :(得分:0)
问题与我的〜/ .gradle文件夹有关。我删除了文件夹并重新初始化了gradle。