What is NPM's package-lock.json?

Published: 27 December 2022
on channel: Tom Gregory Tech
12,926
403

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


Watch video What is NPM's package-lock.json? online without registration, duration hours minute second in high quality. This video was added by user Tom Gregory Tech 27 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12,926 once and liked it 403 people.