thingsboard 编译失败 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.

ThingsKit物联网平台:基于ThingsBoard开发,面向中小型企业开箱即用的低代码物联网平台 :ThingsKit物联网平台
ThingsKit物联网平台演示环境 :https://docs.thingskit.com/thingskit-link/getting-started

ThingsKit物联网平台
ThingsKit物联网平台

编译失败,报以下错误:

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

解决方案:

参考:thingsboard编译失败
检查是否使用了淘宝镜像源,如果是可以尝试切换回官方镜像源,然后执行一下步骤:

1、删除ui目录下面的node_modules文件夹

2、执行

cache clean --force

3、执行

npm update

4、执行

mvn clean install -DskipTests

欢迎加入ThingsBoard技术交流群

ThingsKit物联网平台

这里可复制Q群号:69998183

关注“云腾五洲”:获取二开ThingsBoard物联网平台演示

ThingsKit物联网平台

TK物联网平台:ThingsKit物联网平台

posted @ 2020-03-06 23:12  ThingsKit物联网平台  阅读(11339)  评论(0编辑  收藏  举报
物联网平台 智能物联网平台