I am trying to build my aem project for a local setup but keep getting this error:
"Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:npm (npm ci) on project com.adobe.cq.cloud.testing.ui.cypress.tests: Failed to run task: 'npm ci' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)"
Tried downloading the specific version required for cypress, tried deleting the node-modules folder as well but unable to remove this error. Kindly refer the below screenshots for more information on the exact error:
I am currently using the AEM cloud version, archetype 51 was used to build the project, npm version is 10.9.2 and node version v22.13.1. Kindly provide suggestions on what can be done to remove this error as I have tried with WKND as well as standalone project too.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @RekhaRa4 ,
I think the error you are getting is because your project uses AEM Archetype 51, which includes Cypress tests and a frontend build pipeline. These expect Node.js 18 and npm 8.
You're currently using:
These versions are too new and unsupported by several dependencies (especially Cypress & older frontend tooling).
1. Downgrade to Node 18 and npm 8
Use Node Version Manager (nvm):
2. Clean the Frontend Workspace:- In the ui.frontend or ui.tests folder (where Cypress lives):
3. Re-run Maven Build
Try this and let me if it works.
thanks.
Views
Replies
Total Likes
Hi @RekhaRa4 ,
During mvn clean install, the Cypress tests fail to build due to a corrupted Cypress binary download.
The root cause is incompatible Node/npm versions and possibly a network/proxy issue.
You're using:
Node.js: v22.13.1
npm: 10.9.2
AEM Archetype: 51 (which expects older tooling)
Cypress and the AEM Archetype 51 frontend plugin are not compatible with Node 22 or npm 10.
Try below solution:
1. Switch to Correct Node & npm Versions
Use nvm to manage Node versions:
nvm install 18
nvm use 18
This will give you Node 18 and npm ~8, which are fully compatible with Cypress 13.14.1 and AEM archetype 51.
2. Clean Frontend Environment
Inside the Cypress test module (likely ui.tests or com.adobe.cq.cloud.testing.ui.cypress.tests):
rm -rf node_modules package-lock.json
npm cache clean --force
This ensures no residual corrupt/cached content interferes.
3. Manually Trigger Cypress Binary Download (Optional but Safe)
Sometimes the Cypress binary fails via npm ci due to checksum mismatch or network restrictions. You can pre-install it:
npm install cypress@13.14.1
npx cypress verify
This downloads the binary cleanly and verifies its integrity.
4. Build Again Using Maven
From the project root:
mvn clean install
If you also want to deploy to your local AEM SDK:
mvn clean install -PautoInstallSinglePackage
Regards,
Amit
Views
Replies
Total Likes
Hi @RekhaRa4,
Did the shared solution help you out? Please let us know if you need more information. Otherwise kindly consider marking the most suitable answer as ‘correct’.
If you've discovered a solution yourself, we would appreciate it if you could share it with the community.
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies