What is NPM's package-lock.json?

Описание к видео 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 https://tomgregory.com/gradle/courses...

🚀 FREE INTRODUCTORY GRADLE COURSE https://tomgregory.com/gradle/courses...

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

🌍 Read more about npm on my website https://tomgregory.com/what-java-deve...

💌 Sign up to my monthly newsletter https://tomgregory.com/subscribe

Комментарии

Информация по комментариям в разработке