[INFO] Reactor Summary for CUB Practice 1.0.0-SNAPSHOT:
[INFO]
[INFO] CUB Practice ....................................... SUCCESS [ 0.592 s]
[INFO] CUB Practice - Core ................................ SUCCESS [ 10.226 s]
[INFO] CUB Practice - UI Frontend ......................... FAILURE [ 1.800 s]
[INFO] CUB Practice - Repository Structure Package ........ SKIPPED
[INFO] CUB Practice - UI apps ............................. SKIPPED
[INFO] CUB Practice - UI content .......................... SKIPPED
[INFO] CUB Practice - UI config ........................... SKIPPED
[INFO] CUB Practice - All ................................. SKIPPED
[INFO] CUB Practice - Integration Tests ................... SKIPPED
[INFO] CUB Practice - Dispatcher .......................... SKIPPED
[INFO] CUB Practice - UI Tests ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.977 s
[INFO] Finished at: 2024-12-02T16:14:18+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:npm (npm ci) on project cub.practice.ui.frontend: Failed to run task: 'npm ci' 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 :cub.practice.ui.frontend
I encountered this error when I wanted to package the project
I tried clearing the cache and also tried going directly to the UI Frontend folder and running the npm install command.
None of these methods work.
But npm provides other error messages.
PS C:\aem-test\cub.practice\ui.frontend> npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: cub-practice@0.1.0
npm error Found: react@18.3.1
npm error node_modules/react
npm error react@"^18.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.14.0" from @adobe/aem-core-components-react-base@1.1.8
npm error node_modules/@adobe/aem-core-components-react-base
npm error @adobe/aem-core-components-react-base@"^1.1.8" from the root project
How can i fix it?