Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构建UI服务报错 #5854

Closed
kinghy opened this issue May 3, 2024 · 3 comments
Closed

构建UI服务报错 #5854

kinghy opened this issue May 3, 2024 · 3 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@kinghy
Copy link

kinghy commented May 3, 2024

系统信息

v2.14.1

使用的哪种方式运行?

Fat Jar

发生了什么?

ubuntu 运行./gradlew :ui:dev 构建前端服务出错

> Task :ui:pnpmInstall FAILED

FAILURE: Build failed with an exception.

单独运行./gradlew :ui:pnpmInstall 也遇到同样的错误

相关日志输出

> Task :ui:nodeSetup SKIPPED
Skipping task ':ui:nodeSetup' as task onlyIf 'Task satisfies onlyIf spec' is false.
Resolve mutations for :ui:pnpmSetup (Thread[included builds,5,main]) started.
:ui:pnpmSetup (Thread[included builds,5,main]) started.

> Task :ui:pnpmSetup UP-TO-DATE
Caching disabled for task ':ui:pnpmSetup' because:
  Build cache is disabled
Skipping task ':ui:pnpmSetup' as it is up-to-date.
Resolve mutations for :ui:pnpmInstall (Thread[included builds,5,main]) started.
:ui:pnpmInstall (Thread[included builds,5,main]) started.

> Task :ui:pnpmInstall FAILED
Caching disabled for task ':ui:pnpmInstall' because:
  Build cache is disabled
Task ':ui:pnpmInstall' is not up-to-date because:
  Task has failed previously.
Starting process 'command 'pnpm''. Working directory: /root/halo-test/halo/ui Command: pnpm install

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ui:pnpmInstall'.
> A problem occurred starting process 'command 'pnpm''

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 1s

附加信息

No response

@JohnNiang
Copy link
Member

首先,你的开发环境需要满足文档 https://docs.halo.run/developer-guide/core/prepare 中提到的工具要求。

如果工具满足,建议直接去 ui 目录下执行 pnpm install ,最后看看结果。

/kind support

@f2c-ci-robot f2c-ci-robot bot added the kind/support Categorizes issue or PR as a support question. label May 4, 2024
@kinghy
Copy link
Author

kinghy commented May 4, 2024

首先,你的开发环境需要满足文档 https://docs.halo.run/developer-guide/core/prepare 中提到的工具要求。

如果工具满足,建议直接去 ui 目录下执行 pnpm install ,最后看看结果。

/kind support

环境检查了下没有问题。直接在ui下运行pnpm install可以执行,但是通过gradlew就会报错。

@JohnNiang
Copy link
Member

建议执行 ./gradlew clean 后再执行 ./gradlew :ui:dev 看看能否正常构建。

@ruibaby ruibaby closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants