添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
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 Marketo Engage

Hi all,

I am trying to run a maven aem project but I got the below error. Can anyone help me with this

Teju_8_0-1656583520439.png

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 [email protected]
3 info using [email protected]
4 verbose run-script [ 'preprod', 'prod', 'postprod' ]
5 info lifecycle [email protected]~preprod: [email protected]
6 info lifecycle [email protected]~prod: [email protected]
7 verbose lifecycle [email protected]~prod: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~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 [email protected]~prod: CWD: C:\Users\2100383\Author\Workspace\my-site\ui.frontend
10 silly lifecycle [email protected]~prod: Args: [
10 silly lifecycle '/d /s /c',
10 silly lifecycle 'webpack --config ./webpack.prod.js && clientlib --verbose'
10 silly lifecycle ]
11 silly lifecycle [email protected]~prod: Returned: code: 1 signal: null
12 info lifecycle [email protected]~prod: Failed to exec prod script
13 verbose stack Error: [email protected] 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 [email protected]
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 [email protected] prod: `webpack --config ./webpack.prod.js && clientlib --verbose`
22 error Exit status 1
23 error Failed at the [email protected] prod script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

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

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