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

arunk85184451

06-05-2020

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]

Accepted Solutions (1)

Accepted Solutions (1)

Suraj_Kamdi

MVP

07-05-2020

@arunk85184451 

Just hit the following command in ui.frontend module 

npm cache clean --force

 

I hope this will resolve the issue.

 

Thanks & regard,

Suraj K

Answers (1)

Answers (1)

lediona

19-05-2020

@arunk85184451 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