Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Certificate errors building WKND SPA React

Avatar

Level 2

I'm trying to build the WKND SPA React sample project and I'm getting the following error:

 

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:install-node-and-npm (install node and npm) on project aem-guides-wknd-spa.react.ui.frontend: Could not download Node.js from: https://nodejs.org/dist/v12.22.7/win-x64/node.exe: Could not download https://nodejs.org/dist/v12.22.7/win-x64/node.exe: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

I'm aware this is an certificate issue, and it would normally be resolved by adding the nodejs cert to my Java certificate store. I've already done that though and I'm still getting the errors. On AEM 6.5.0, I was able to build the project successfully after adding the cert to the JDK cert store, but now that I'm working with 6.5.12, I'm having no luck. Hoping to get some suggestions on what to try next.

1 Accepted Solution

Avatar

Correct answer by
Level 2

I was not able to sort this out in conventional ways, so I ended up having to bypass the certification check. There's an open pull request on the frontend-maven-plugin project that allows you to trust insecure downloads. I cloned that repo and built the plugin myself.

https://github.com/eirslett/frontend-maven-plugin/pull/1027

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

I was not able to sort this out in conventional ways, so I ended up having to bypass the certification check. There's an open pull request on the frontend-maven-plugin project that allows you to trust insecure downloads. I cloned that repo and built the plugin myself.

https://github.com/eirslett/frontend-maven-plugin/pull/1027