Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

NPM Error while doing clean install to build and deploy the WKND project to AEM:

Avatar

Level 5

Hi,

I am following steps : https://docs.adobe.com/content/help/en/experience-manager-learn/getting-started-wknd-tutorial-develo...

 

got below error 

 

[INFO] --- frontend-maven-plugin:1.7.6:install-node-and-npm (install node and npm) @ aem-guides-wknd.ui.frontend ---
[INFO] Node v10.13.0 is already installed.
[INFO] NPM 6.9.0 is already installed.
[INFO]
[INFO] --- frontend-maven-plugin:1.7.6:npm (npm install) @ aem-guides-wknd.ui.frontend ---
[INFO] Running 'npm install' in C:\Users\arunk\Desktop\Adobe\AEM6.5\AEM6.5\WKND\aem-guides-wknd\ui.frontend
[WARNING] npm WARN deprecated tslint-webpack-plugin@2.1.0: Due to tslint being deprecated, this plugin is now also deprecated. Please consider switching to eslint.
[WARNING] npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[WARNING] npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
[WARNING] npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[ERROR] npm ERR! Unexpected end of JSON input while parsing near '...:"^0.7.8","ts-loader"'
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR! C:\Users\arunk\AppData\Roaming\npm-cache\_logs\2020-05-07T02_48_50_827Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for aem-guides-wknd 0.0.1-SNAPSHOT:
[INFO]
[INFO] aem-guides-wknd .................................... SUCCESS [ 1.415 s]
[INFO] WKND Sites Project - Core .......................... SUCCESS [ 27.972 s]
[INFO] WKND Sites Project - UI Frontend ................... FAILURE [ 24.814 s]
[INFO] WKND Sites Project - Repository Structure Package .. SKIPPED
[INFO] WKND Sites Project - UI apps ....................... SKIPPED
[INFO] WKND Sites Project - UI content .................... SKIPPED
[INFO] WKND Sites Project - All ........................... SKIPPED
[INFO] WKND Sites Project - Integration Tests Bundles ..... SKIPPED
[INFO] WKND Sites Project - Integration Tests Launcher .... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 59.868 s
[INFO] Finished at: 2020-05-06T22:48:52-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:npm (npm install) on project aem-guides-wknd.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]

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Community Advisor

@sonuk85184451 

Just hit the following command in ui.frontend module 

npm cache clean --force

 

I hope this will resolve the issue.

 

Thanks & regard,

Suraj K

Lösung in ursprünglichem Beitrag anzeigen

8 Antworten

Avatar

Level 5

Issue Resolved -  Updating <npmVersion>6.9.0</npmVersion>   to <npmVersion>3.10.8 </npmVersion>

Avatar

Korrekte Antwort von
Community Advisor

@sonuk85184451 

Just hit the following command in ui.frontend module 

npm cache clean --force

 

I hope this will resolve the issue.

 

Thanks & regard,

Suraj K

Avatar

Level 5
Thanks, but it didnt resolved by doing above command 😞

Avatar

Community Advisor

@sonuk85184451

This error is related to relative paths.

Use the following npm package dependency to resolve the issue

https://www.npmjs.com/package/tspath 

 

Avatar

Level 10
Hi, please post your resolution as an answer and selected it as "accepted" so future visitors will find it 🙂

Avatar

Level 1

@sonuk85184451 Please cal you tell me more, i have the same problem urix and resolve-url. I downgraded in version 3.10.8 but still can't run gulp command.

Thank you

Avatar

Level 5
@lediona - can you please share the error what you are getting now ?

Avatar

Level 7

After this npm cache clean --force

You also need to remove node_modules under ui.frontend module