Expand my Community achievements bar.

SOLVED

Local build issue ui.frontend module - npm issue

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

5 Replies

Avatar

Community Advisor

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 2

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

Avatar

Community Advisor

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-go...

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/error-failed-to-execute-go...

Thanks

Avatar

Level 2

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