close

[Solved] npm WARN old lockfile The package-lock.json file was created with an old version of npm

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to Run npm ci I am facing this npm WARN old lockfile The package-lock.json file was created with an old version of npm in nodejs. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How npm WARN old lockfile The package-lock.json file was created with an old version of npm Error Occurs ?

Today I am trying to Run npm ci I am facing the following error.

Step 12/26 : RUN npm ci --production --package-lock &&     npm ci --production --package-lock --prefix ./ui-runner
 ---> Running in 3473c209b98c
npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 

How To Solve npm WARN old lockfile The package-lock.json file was created with an old version of npm Error ?

  1. How To Solve npm WARN old lockfile The package-lock.json file was created with an old version of npm Error?

    To Solve npm WARN old lockfile The package-lock.json file was created with an old version of npm Error This issue facing the newest version of npm So that I just downgrade to an older version And the error is solved. Just install the desired version with this command in the console, substitute “V” with your desired version.

  2. npm WARN old lockfile The package-lock.json file was created with an old version of npm

    To Solve npm WARN old lockfile The package-lock.json file was created with an old version of npm Error This issue facing the newest version of npm So that I just downgrade to an older version And the error is solved. Just install the desired version with this command in the console, substitute “V” with your desired version.

Solution 1: downgrade npm version

This issue facing the newest version of npm So that I just downgrade to an older version And the error is solved. Just install the desired version with this command in the console, substitute “V” with your desired version.

 npm install -g [email protected]"V"

Here you will get npm all versions You can Install the desired version.

Solution 2: Ignore this warning

Just Ignore this warning. It’s just a warning, and all that’s happening is npm is adding information to the package-lock.json file. I think this warning will be solved in the next version.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment