Failed to execute goal com.github.eirslett:frontend-maven-plugin with AEM REact SPA
I have the following issue :
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for wknd-spa-react 1.0.3-SNAPSHOT:
[INFO]
[INFO] wknd-spa-react ..................................... SUCCESS [ 0.508 s]
[INFO] WKND SPA React - Core .............................. SUCCESS [ 9.869 s]
[INFO] wknd-spa-react.ui.frontend - UI Frontend ........... FAILURE [ 21.494 s]
[INFO] WKND SPA React - Repository Structure Package ...... SKIPPED
[INFO] WKND SPA React - UI apps ........................... SKIPPED
[INFO] WKND SPA React - UI content ........................ SKIPPED
[INFO] WKND SPA React - All ............................... SKIPPED
[INFO] WKND SPA React - Integration Tests ................. SKIPPED
[INFO] WKND SPA React - Dispatcher ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.812 s
[INFO] Finished at: 2023-05-02T14:08:11-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.1:npm (npm run build) on project wknd-spa-react.ui.frontend: Failed to run task: 'npm run build' 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 :wknd-spa-react.ui.frontend
This happens when I try to install the react app tutorial (github weekend spa branch React/latests2.0.0) but also when I create a aem project with the archetype cli.
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/maven
Java version: 11.0.18, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.19.0-41-generic", arch: "amd64", family: "unix"
node v18.16.0
npm -v 9.5.1
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy