npm install failed error | Community
Skip to main content
Level 4
Jun 9, 2022 9:04 AM UTC
Solved

npm install failed error

Hi, 

I am trying to run a maven project. But it throws the below error. I have tried many ways like changed the node verstion, installed new/updated node then ran npm install under ui.frontend but nothing works out. Can anyone tell me the solution for this ?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
BrianKasingli
BrianKasingliAccepted solution
New Participant
Jun 10, 2022 2:59 AM UTC

Hello @tessa_learner1, 

 

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 to play around with the npm version and see if that works. From testing myself, I realize that the latest Node and NPM version do not work.

 

6 replies

BrianKasingli
BrianKasingliAccepted solution
New Participant
Jun 10, 2022 2:59 AM UTC

Hello @tessa_learner1, 

 

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 to play around with the npm version and see if that works. From testing myself, I realize that the latest Node and NPM version do not work.

 

Translate
Level 4
Jun 10, 2022 3:12 AM UTC

Thank you. @briankasingli  Yes, I was using the latest node & npm version and I have changed only the npm version in main pom.xml and it got resolved. 

Translate
SantoshSai
New Participant
Jun 9, 2022 2:13 PM UTC
Level 4
Jun 10, 2022 3:14 AM UTC

Thank you @santoshsai  I have changed the npm version to 3.10.8 as mentioned in the link and it got success. Thanks for your time.

Translate
arunpatidar
New Participant
Jun 9, 2022 2:10 PM UTC

Can you try deleting and regenrating paclage-lock.json

Translate
Arun Patidar
Level 4
Jun 10, 2022 3:15 AM UTC

@arunpatidar  Thanks for the suggestion. As I was using latest node version, just changed the npm version to 3.10.8 and it got worked. Thanks for your time. 

Translate