Hi all,
I am trying to run a maven aem project but I got the below error. Can anyone help me with this
Following is debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Users\\2100383\\Author\\Workspace\\my-site\\ui.frontend\\node\\node.exe',
1 verbose cli 'C:\\Users\\2100383\\Author\\Workspace\\my-site\\ui.frontend\\node\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'prod'
1 verbose cli ]
2 info using npm@6.14.0
3 info using node@v12.22.7
4 verbose run-script [ 'preprod', 'prod', 'postprod' ]
5 info lifecycle aem-maven-archetype@1.0.0~preprod: aem-maven-archetype@1.0.0
6 info lifecycle aem-maven-archetype@1.0.0~prod: aem-maven-archetype@1.0.0
7 verbose lifecycle aem-maven-archetype@1.0.0~prod: unsafe-perm in lifecycle true
8 verbose lifecycle aem-maven-archetype@1.0.0~prod: PATH: C:\Users\2100383\Author\Workspace\my-site\ui.frontend\node\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\2100383\Author\Workspace\my-site\ui.frontend\node_modules\.bin;C:\Users\2100383\Author\Workspace\my-site\ui.frontend\node;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\MySQL\MySQL Shell 8.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_291\bin;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Java\apache-maven-3.8.4\bin;C:\Program Files\Java\jdk-11.0.14\bin\bin%;%MAVEN_HOME\bin%;C:\Program Files\nodejs\;%aem_home\bin%;C:\Users\2100383\AppData\Local\Microsoft\WindowsApps;C:\Users\2100383\AppData\Roaming\npm;;
9 verbose lifecycle aem-maven-archetype@1.0.0~prod: CWD: C:\Users\2100383\Author\Workspace\my-site\ui.frontend
10 silly lifecycle aem-maven-archetype@1.0.0~prod: Args: [
10 silly lifecycle '/d /s /c',
10 silly lifecycle 'webpack --config ./webpack.prod.js && clientlib --verbose'
10 silly lifecycle ]
11 silly lifecycle aem-maven-archetype@1.0.0~prod: Returned: code: 1 signal: null
12 info lifecycle aem-maven-archetype@1.0.0~prod: Failed to exec prod script
13 verbose stack Error: aem-maven-archetype@1.0.0 prod: `webpack --config ./webpack.prod.js && clientlib --verbose`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Users\2100383\Author\Workspace\my-site\ui.frontend\node\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:314:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\2100383\Author\Workspace\my-site\ui.frontend\node\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:314:20)
13 verbose stack at maybeClose (internal/child_process.js:1022:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid aem-maven-archetype@1.0.0
15 verbose cwd C:\Users\2100383\Author\Workspace\my-site\ui.frontend
16 verbose Windows_NT 10.0.19042
17 verbose argv "C:\\Users\\2100383\\Author\\Workspace\\my-site\\ui.frontend\\node\\node.exe" "C:\\Users\\2100383\\Author\\Workspace\\my-site\\ui.frontend\\node\\node_modules\\npm\\bin\\npm-cli.js" "run" "prod"
18 verbose node v12.22.7
19 verbose npm v6.14.0
20 error code ELIFECYCLE
21 error errno 1
22 error aem-maven-archetype@1.0.0 prod: `webpack --config ./webpack.prod.js && clientlib --verbose`
22 error Exit status 1
23 error Failed at the aem-maven-archetype@1.0.0 prod script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Teju_8 ,
It looks like you are using the latest Node and npm version which may not support some node modules that is installed from the package.json. Try Updating
<npmVersion>6.14.0</npmVersion> to <npmVersion>3.10.8</npmVersion>
If still doesn't work try this: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/error-failed-to-execute-go...
Hope that helps!
Regards,
Santosh
What is the npm version you are using?
Try updating the npm and node version.
<nodeVersion>v12.22.7</nodeVersion>
<npmVersion>6.14.0</npmVersion>
Hi @Teju_8 ,
It looks like you are using the latest Node and npm version which may not support some node modules that is installed from the package.json. Try Updating
<npmVersion>6.14.0</npmVersion> to <npmVersion>3.10.8</npmVersion>
If still doesn't work try this: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/error-failed-to-execute-go...
Hope that helps!
Regards,
Santosh
Thank You !!!
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies