Connect with us

How to Fix Npm Error (npm ERR! conflict Automatic conflict resolution failed. Please manually resolve conflicts in package-lock.json and try again)

kizinho

Published

on

Follow
How to Fix Npm Error (npm ERR! conflict Automatic conflict resolution failed. Please manually resolve conflicts in package-lock.json and try again)
Photo: Naijacrawl

Hi Folks today when i was working on a project , wanted to install NPM in my project, but encountered this errors saying .

 

npm ERR! conflict Automatic conflict resolution failed. Please manually resolve conflicts in package-lock.json and try again





npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2019-06-10T15_01_39_991Z-debug.log
PS C:\xampp\htdocs\oer_coalcity\ccu-oer> npm install --package-lock
npm WARN conflict A git conflict was detected in package-lock.json. Attempting to auto-resolve.

 

How I solved It

1. Run rm package-lock.json

 

2. Run npm install

 

3. Run git add package-lock.json

 

Thats how i got my npm installed in my project. 

 



kizinho
 Follow

I am a software developer, like meeting people and love blogging, that's why I developed naijacrawl because that's what I love doing.

Continue Reading
Click To Comment

BE First To Comment


    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Latest



    Face of Naijacrawl


    Ujahmycine Ujahmycine

    Ali Tigress


    Chemical Engineer - 08064012879

    Trending