thingsboard Compilation failed Failed to execute goal com.github.eirslett: frontend-maven-plugin: 1.7.5: npm

Compilation failed, reported the following 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 Messages

[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

solution:

Reference: thingsboard Compilation failed
to check whether Taobao mirror source, and if you can try to switch back to the official source image, and then execute the following steps:

1, delete the following node_modules ui directory folder

2, execution

cache clean --force

3, execution

npm update

4, execution

mvn clean install -DskipTests

thingsboard exchange QQ group 121,202,538

Welcome to join thingsboard secondary development discussion group: 121 202 538

Published 11 original articles · won praise 0 · Views 1110

Guess you like

Origin blog.csdn.net/IoTSchool/article/details/104706757