我是靠谱客的博主 迷路早晨,最近开发中收集的这篇文章主要介绍thingsboard编译失败 Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
编译失败,报以下错误:
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm (npm install) on project ui-ngx: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: -4048 (Exit value: -4048) -> [Help 1]
错误信息
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Thingsboard 3.0.0-SNAPSHOT:
[INFO]
[INFO] Thingsboard ........................................ SUCCESS [ 0.878 s]
[INFO] Netty MQTT Client .................................. SUCCESS [ 1.991 s]
[INFO] Thingsboard Server Commons ......................... SUCCESS [ 0.080 s]
[INFO] Thingsboard Server Common Data ..................... SUCCESS [ 5.836 s]
[INFO] Thingsboard Server Common Utils .................... SUCCESS [ 0.247 s]
[INFO] Thingsboard Server Common Messages ................. SUCCESS [ 9.960 s]
[INFO] Thingsboard Server Queue components ................ SUCCESS [ 0.542 s]
[INFO] Thingsboard Server Commons ......................... SUCCESS [ 0.027 s]
[INFO] Thingsboard Server Common Transport components ..... SUCCESS [ 10.231 s]
[INFO] Thingsboard MQTT Transport Common .................. SUCCESS [ 0.867 s]
[INFO] Thingsboard HTTP Transport Common .................. SUCCESS [ 0.491 s]
[INFO] Thingsboard CoAP Transport Common .................. SUCCESS [ 0.956 s]
[INFO] Thingsboard Server Common DAO API .................. SUCCESS [ 1.330 s]
[INFO] Thingsboard Extensions ............................. SUCCESS [ 0.041 s]
[INFO] Thingsboard Rule Engine API ........................ SUCCESS [ 1.035 s]
[INFO] Thingsboard Server DAO Layer ....................... SUCCESS [ 59.488 s]
[INFO] Thingsboard Rule Engine Components ................. SUCCESS [ 5.554 s]
[INFO] Thingsboard Server Transport Modules ............... SUCCESS [ 0.023 s]
[INFO] Thingsboard HTTP Transport Service ................. SUCCESS [ 9.798 s]
[INFO] Thingsboard MQTT Transport Service ................. SUCCESS [ 5.203 s]
[INFO] Thingsboard CoAP Transport Service ................. SUCCESS [ 4.718 s]
[INFO] ThingsBoard Server UI .............................. FAILURE [11:51 min]
[INFO] Thingsboard Server Tools ........................... SKIPPED
[INFO] Thingsboard Rest Client ............................ SKIPPED
[INFO] ThingsBoard Server Application ..................... SKIPPED
[INFO] ThingsBoard Microservices .......................... SKIPPED
[INFO] ThingsBoard Docker Images .......................... SKIPPED
[INFO] ThingsBoard JavaScript Executor Microservice ....... SKIPPED
[INFO] ThingsBoard Web UI Microservice .................... SKIPPED
[INFO] ThingsBoard Node Microservice ...................... SKIPPED
[INFO] ThingsBoard Transport Microservices ................ SKIPPED
[INFO] ThingsBoard MQTT Transport Microservice ............ SKIPPED
[INFO] ThingsBoard HTTP Transport Microservice ............ SKIPPED
[INFO] ThingsBoard COAP Transport Microservice ............ SKIPPED
[INFO] ThingsBoard Black Box Tests ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:51 min
[INFO] Finished at: 2020-03-05T20:49:00+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm (npm install) on project ui-ngx: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: -4048 (Exit value: -4048)
-> [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
解决方案:
检查是否使用了淘宝镜像源,如果是可以尝试切换回官方镜像源,然后执行一下步骤:
1、删除ui目录下面的node_modules文件夹
2、执行
cache clean --force
3、执行
npm update
4、执行
mvn clean install -DskipTests
欢迎加入ThingsBoard技术交流群
群号:69998183
基于ThingsBoard二次开发的物联网平台推荐:ThingsKit物联网平台,开箱即用的物联网低代码平台,提供N+1+N的产品服务体系,帮助企业快速搭建稳定可靠的物联网系统平台,为企业节省大量时间及人力成本。www.thingskit.com
最后
以上就是迷路早晨为你收集整理的thingsboard编译失败 Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm的全部内容,希望文章能够帮你解决thingsboard编译失败 Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复