Local build issue ui.frontend module - npm issue | Community
Skip to main content
Level 2
January 8, 2025
Solved

Local build issue ui.frontend module - npm issue

  • January 8, 2025
  • 3 replies
  • 1230 views

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

Best answer by MukeshYadav_

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

3 replies

MukeshYadav_
Community Advisor
MukeshYadav_Community AdvisorAccepted solution
Community Advisor
January 8, 2025

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

Level 2
January 9, 2025

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

MukeshYadav_
Community Advisor
Community Advisor
January 10, 2025

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.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/error-failed-to-execute-goal-com-day-jcr-vault-content-package/m-p/377305

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/error-failed-to-execute-goal-com-day-jcr-vault-content-package/td-p/643027

Thanks

Level 2
January 10, 2025

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