问题描述
编译thingsboard源码,在编译ui-ngx模块时编译失败
报错信息如下:
[INFO] ThingsBoard Server UI .............................. FAILURE [ 20.104 s]
[INFO] Thingsboard Server Tools ........................... SKIPPED
[INFO] Thingsboard Rest Client ............................ SKIPPED
[INFO] ThingsBoard Server Application ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:06 min
[INFO] Finished at: 2023-05-05T17:11:34+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:yarn (yarn install) on project ui-ngx: Failed to run task: 'yarn install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :ui-ngx
PS D:\Code\iot-thingsboard-master>
原因分析:
可能是版本不匹配或者依赖问题
解决方案:
-
检查ui-ngx 下pom的nodejs和yarn版本,确保本地环境版本号与配置一致。
-
如果上述问题排除,在ui-ngx目录下起一个命令行 运行yarn install命令,如果没有问题,则删除maven repository后找个网络好的环境重新导入依赖并编译
文章来源:https://www.toymoban.com/news/detail-680441.html
最后
本人重新导入依赖后
文章来源地址https://www.toymoban.com/news/detail-680441.html
到了这里,关于idea编译thingsboard报错yarn (yarn install) on project ui-ngx: Failed to run task: ‘yarn install‘ failed.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!