Hi All,
I was trying to setup a local server after setting the jar file. While deploying code to local server I am facing some errors.
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:npm (npm install --legacy-peer-deps) on project aem-tatasteelltdaemprogram-project.ui.frontend: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1].
Thanks,
Deepankar Mahto
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @deepankar2 ,
You may share more log statement that can help identify what went wrong.
Since the error involves the --legacy-peer-deps
flag, it suggests there might be a conflict between package dependencies. Try running the npm install
command in ui.frontend folder and post which you may build whole AEM project.
npm cache clean --force
npm install --legacy-peer-deps
It is mostly due to version/dependency issue
Thanks
Views
Replies
Total Likes
Hi @deepankar2 ,
Could you please check the below threads:
Try this above ways and check.
Thank you!
Views
Replies
Total Likes
Hi @deepankar2 ,
You may share more log statement that can help identify what went wrong.
Since the error involves the --legacy-peer-deps
flag, it suggests there might be a conflict between package dependencies. Try running the npm install
command in ui.frontend folder and post which you may build whole AEM project.
npm cache clean --force
npm install --legacy-peer-deps
It is mostly due to version/dependency issue
Thanks
Views
Replies
Total Likes
Hi @MukeshYadav_ ,
Thanks for your suggestion it helps me to solve the issue for npm--peer--deps legacy but now I am another issue.
Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.2:install (install-package) on project in ui.apps : Error while installing package.
Thanks,
Deepankar Mahto
Views
Replies
Total Likes
Hi @deepankar2 ,
You shared too little error message to guess. Are you getting connection refused ?
Is your AEM instance up and running on the same port mentioned in you project code which is required to get the bundle deployed.
Thanks
Views
Replies
Total Likes
Hi @MukeshYadav_ ,
Thankoyu for your response, don't know why mvn clean install -PautoInstallPackage was not working so I tried mvn clean install -PautoInstallSinglePackage and now it's working fine.
Thanks,
Deepankar Mahto
Views
Replies
Total Likes