Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

run mvn clean install -PautoInstallSinglePackage then occur a error

Avatar

Level 2

1. my local machine env

guoliangwa_0-1723022823784.png

2. init AEM command

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=39 -D appTitle="WKND Sites Project" -D appId="wknd" -D groupId="com.adobe.aem.guides" -D artifactId="aem-guides-wknd" -D package="com.adobe.aem.guides.wknd" -D version="0.0.1-SNAPSHOT" -D aemVersion="6.5.0"

3. display this after run command above

guoliangwa_1-1723022933284.png

i wait it until running over,  show me like below

guoliangwa_2-1723023036784.png

fail to deploy this in AEM instant, i had see many issues fix answers in community, but it did not work for me.

guoliangwa_3-1723023179445.png

guoliangwa_4-1723023242731.pngguoliangwa_5-1723023278620.png

 

 

please save me.  thank a lot !

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @guoliangwa ,

As I mentioned actual error was not there in your first screenshot.

Pls try below cmd

npm config set registry https://registry.npmjs.org/

or

https://community.sap.com/t5/enterprise-resource-planning-q-a/getting-npm-err-code-cert-has-expired-...

and then build It should work.

 

Thanks

View solution in original post

8 Replies

Avatar

Community Advisor

Hi @guoliangwa 
Could you please go inside ui.frontend module and run 'mvn clean install' and share the build logs.

e.g.

cd D:\AEM_PROJECT\aem-guides-wknd\ui.frontend
mvn clean install

 

 

 

 

 

 



Arun Patidar

Avatar

Level 2

i had runned this command yesterday,  i run it again today, it is the same error below this.

cd D:\AEM_PROJECT\aem-guides-wknd\ui.frontend
mvn clean installlx_clip1723085444617.png

 

Avatar

Community Advisor

Hi @guoliangwa 
You can see the error in the build log.

you are trying to connect to internal NPM repository to download the dependencies and which is failing due to expired certificate.

 

Please check this for resolution:

https://stackoverflow.com/questions/72220560/npm-err-code-cert-has-expired-angular-13 



Arun Patidar

Avatar

Level 2

Hi arunpatidar, anyway, thank you for your support me! i modify my npm respositry to original npm respositry. it works for me! The taobao npm respositry cause me fail to mvn clean install. Thank you a lot!

Avatar

Community Advisor

Hi @guoliangwa ,

You may try https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/npm-error-while-doing-clea...

If above doesn't help try in fresh folder and it should work or you may downgrade your node version https://github.com/thingsboard/thingsboard/issues/1335#issuecomment-695977706

It worked for me with below in ubuntu system

MukeshYadav__0-1723039828413.png

Also share the first error message if possible probably above the screenshot you shared.

Thanks

Avatar

Level 2

I try to resolve below the two way, they are not work for me.

 

1. 

guoliangwa_1-1723086810436.png

 

guoliangwa_0-1723086773709.png

 the logs refer to below picture:

guoliangwa_2-1723086913362.png

guoliangwa_3-1723086949757.png

 

2.

guoliangwa_4-1723086982439.png

     

guoliangwa_5-1723087025164.png

guoliangwa_6-1723087097734.png

3. i download the fixed node and npm, but it donot work too.  My local system is window10, not ubuntu.

guoliangwa_0-1723087524870.png

 

 

 

 

 

Avatar

Correct answer by
Community Advisor

Hi @guoliangwa ,

As I mentioned actual error was not there in your first screenshot.

Pls try below cmd

npm config set registry https://registry.npmjs.org/

or

https://community.sap.com/t5/enterprise-resource-planning-q-a/getting-npm-err-code-cert-has-expired-...

and then build It should work.

 

Thanks

Avatar

Level 2

@MukeshYadav_
Hi MukeshYadav,you are awesome and cool!  As a china software engineer, i modified the resposity to registry.npm.taobao.org before.  I modified the respositry to https://registry.npmjs.org/ , it works for me!  The problem cost me two days to find answer...  Thank you very much!