DEV Community

Discussion on: But what the hell is package-lock.json?

Collapse
 
saurabhdaware profile image
Saurabh Daware 🌻

That's a weird error. Maybe you should try having --save-dev or --save flag on npm install. Not sure about what the default npm install behavior is but normall --save or --save-dev will add it to package.json dependency object and it will be installed locally.

Collapse
 
taimoorkhan profile image
Taimoor khan

tried that too but that didn't solved the problem...! I had to delete package-lock.json and then execute the command again...