Linux

What is NPM's package-lock.json?



I was minding my own business trying out npm install. It was going so well, then this weird package-lock.json file appeared.

It just kind of turned up uninvited.

Turns out that npm adds this file automagically, to represent the versions of all the packages installed in node_modules.

But what’s the point of package-lock.json and how do you use it?

? GRADLE HERO COURSE

? FREE INTRODUCTORY GRADLE COURSE

▶️ Watch me next
Gradle Was Hard Until I Learnt This INSANE Secret
10 Tips To Use Gradle With IntelliJ IDEA In 2022

? Read more about npm on my website

? Sign up to my monthly newsletter

[ad_2]

source

Related Articles

Leave a Reply

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

Back to top button