What is NPM's package-lock.json?

Опубликовано: 27 Декабрь 2022
на канале: 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


Смотрите видео What is NPM's package-lock.json? онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Tom Gregory Tech 27 Декабрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 12,92 раз и оно понравилось 40 людям.