Experience League Showcase
Read real-world use cases of Experience Cloud products written by your peers
Adobe Feedback Program
Influence Adobe product development
COMMUNITIES BY PRODUCT
Advertising
Analytics
Audience Manager
Campaign Classic v7 & Campaign v8
Campaign Standard
Developer
Experience Cloud
Experience Manager Sites & More
Experience Platform
Journey Optimizer
Target
Real-Time Customer Data Platform
Workfront
Creative Cloud
Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
Learn More
@Tessa_learner1
,
2 things to consider.
1. Building Locally
You must install the right version of node on your work machine. As a full stack engineer myself, I always need to jump back and fourth from different versions of node or NPM. Please consider the Node Version Manager for windows, as this installation will allow your work machine to seamlessly install/use node versions as require, on the same machine,
GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically writt...
You are probably getting this error maybe because you have not completed a "npm install". NPM install will download all the dependencies that your projects needs to build and compile.
2. Maven Build Automation
For front-end automation using the
com.github.eirslett
plugin, it looks like you are missing the "
npm install
" step...
This code should be ran before your
npm run dev
or
npm run prod (
this configuration might be already in the parent pom, but please take another look):
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<nodeVersion>v12.22.7</nodeVersion>
<npmVersion>6.14.0</npmVersion>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
</execution>
</executions>
</plugin>
Take a look at the latest AEM Maven archtype project to see how this plugin is structured:
aem-project-archetype/pom.xml at develop · adobe/aem-project-archetype · GitHub
@Tessa_learner1
,
2 things to consider.
1. Building Locally
You must install the right version of node on your work machine. As a full stack engineer myself, I always need to jump back and fourth from different versions of node or NPM. Please consider the Node Version Manager for windows, as this installation will allow your work machine to seamlessly install/use node versions as require, on the same machine,
GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically writt...
You are probably getting this error maybe because you have not completed a "npm install". NPM install will download all the dependencies that your projects needs to build and compile.
2. Maven Build Automation
For front-end automation using the
com.github.eirslett
plugin, it looks like you are missing the "
npm install
" step...
This code should be ran before your
npm run dev
or
npm run prod (
this configuration might be already in the parent pom, but please take another look):
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<nodeVersion>v12.22.7</nodeVersion>
<npmVersion>6.14.0</npmVersion>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
</execution>
</executions>
</plugin>
Take a look at the latest AEM Maven archtype project to see how this plugin is structured:
aem-project-archetype/pom.xml at develop · adobe/aem-project-archetype · GitHub
Hi! I'm getting this error when I deploying my AEM WKND SITE to my AEM Instance:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:npm (npm run prod) on project aem-guides-wknd.ui.frontend: Failed to run task: 'npm run prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1
can you help me with this? Thanks!
make changes in package.json file in ui.frontend
update "typescript":"3.3.3333 to "typescript":" 4.8.2"
remove package-lock.json
now execute "mvn clean install -PautoInstallPackage -Padobe-public" in cmd
build will be sucessful
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.1:npm (npm install) on project m-project-aem.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]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :m-project-aem.ui.frontend
Hello everyone,
I tried all the solution mentioned above but still getting this error while updating node version and trying to run cmd "mvn clean install -PautoInstallPackage".
As I need to update node version to use react js library in this project .
changes done in pom.xml :
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.12.1</version>
<configuration>
<nodeVersion>v16.13.1</nodeVersion>
<npmVersion>8.1.2</npmVersion>
</configuration>
my system is having node version 16.13.1
Please help me in fixing this error.