Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm install not creating a new package-lock.json

I accidentally deleted my package-lock.json file. npm install is not generating a new one. How do I get npm to recreate this file.

like image 529
Dblock247 Avatar asked Aug 24 '17 16:08

Dblock247


1 Answers

There might be a file called .npmrc which can contain

package-lock=false 

which will cause the package lock file to not be generated.

In theory you could also have turned on npm config set package-lock false globally (change to true to turn on again), but that's less likely to happen unintentionally.

like image 119
David Mulder Avatar answered Sep 19 '22 12:09

David Mulder