gpt4 book ai didi

node.js - 由 : org. gradle.api.InvalidUserDataException 引起:无法添加任务 ':client:test',因为同名任务已存在

转载 作者:太空宇宙 更新时间:2023-11-03 23:26:37 25 4
gpt4 key购买 nike

我无法让 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.

我当前正在运行:

  • Gradle 3.5
  • Grails 3.2.8

我尝试过更新node.js和npm

该错误与 Grails 相关还是与 Node 设置相关?

最佳答案

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

关于node.js - 由 : org. gradle.api.InvalidUserDataException 引起:无法添加任务 ':client:test',因为同名任务已存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43339407/

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