Expand my Community achievements bar.

run at "mvn clean install -PautoInstallPackage"

Avatar

Level 1

Like below image, I face the error

" Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:install-node-and-npm (install node and npm) on project practice.ui.frontend: Could not download npm: Could not download https://registry.npmjs.org/npm/-/npm-10.7.0.tgz: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]"

 

I check many articles but it won't help.

mvn clean install.jpg

 

Jedy12_0-1720490783697.png

 

node -v : v20.15.0
npm -v: 10.7.0

 

3 Replies

Avatar

Level 8

Hi @Jedy12 

 

Run the command prompt in admin mode, then try.

Avatar

Community Advisor

@Jedy12 

 

npm jar is available in the URL,

It seems to be an issue with Firewall. If possible, please stop Zscaler or similar app for a while. Reach out to your IT department, they should be able to help

 

 

 

 


Aanchal Sikka

Avatar

Level 6

Hi @Jedy12 
Can you try if temporarily disabling SSL verification (not recommended for production) works for you. You can try bypassing SSL verification this way:

mvn clean install -PautoInstallPackage -Dmaven.wagon.http.ssl.insecure=true