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, duration hours minute second in high quality that is uploaded to the channel Tom Gregory Tech 27 December 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 12,926 times and liked it 403 visitors.