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

解决方案:

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

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

2、执行

cache clean --force

3、执行

npm update

4、执行

mvn clean install -DskipTests

thingsboard交流QQ群 121202538

欢迎大家加入thingsboard 二次开发讨论群:121202538

你可能感兴趣的:(物联网,物联网,iot,java)