What is NPM's package-lock.json?

preview_player
Показать описание

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.

▶️ Watch me next

Рекомендации по теме
Комментарии
Автор

For years I've had the lock file my project and finally bit to bullet to try and understand what it is. This video couldn't make it any clearer. Thank you so much!

FengolZA
Автор

The presentation and the conceptual clarity of the video is unbelievable. Thank you.

krishnakandula
Автор

This way you presented this video is incredible; incredibly informative & clear and straight to the point - in 3 mins you answered all my questions better than all the stack overflow questions I've read over the last few years. Incredible channel 🙏

reidmoffat
Автор

Great video, you explained it so accurately. Cleared a lot of blur about the package-lock json file. You should make more videos.

VidyaHarnal-ry
Автор

Great explanation. Love the overall video as well. Fun stuff!

JamesQQuick
Автор

Great explanation! It seems like the lock also includes the versions of the sub dependencies as well

snakeb
Автор

You're very good at this! Quality content, great editing, great humor.

iurysza
Автор

thanks bud, I finally understand wth package-lock is

poppin_party
Автор

great informative video with some comedic scenes. I think you will fit perfectly as voice over

Ahmed-fqkz
Автор

Hi @Tom, I am using yarn in my project and got yarn.lock file. Still the project does not build up when I tried building with "yarn build" command which was actually building earlier.

akashkeshari
Автор

Awesome bro, I watched some videos on the same and thought of the same question why would ^ be in the package.json and lock.jason file exist together but no one mentioned the same except you.

rajatguleria
Автор

I really appreciate your efforts to produce such an amazing video :)

aben
Автор

really appreciate the video . Keep it up 👍

aakashpatel
Автор

Should we ever delete lock file? How will it affect dependencies ?

Amazing content !😊

lightoo
Автор

But what about the fact package-lock.json also has ~ and ^?
It would just then NOT install the exact version of packages...

randalljosue
Автор

Why didn't npm just change the functionality of "npm install"... which installs and automatically updates
... to just "install"... without the automatic update

And if you want to update the packages... you use the "npm update" command
... like you do now?

I don't get it.

b
Автор

I know lock files from the various package managers of Ruby, Python and NodeJS.
A similar functionality exists for Gradle (Locking dependency versions in the user guide). Why seems to be so little talk about that? Why don't you - as the Gradle guy - talk about it or mention the parallels in this video?
Are the other Gradle mechnisms prefered over locking dependencies? I honestly don't understand why this feature seems to be so unpopular for Gradle.

GregorGramlich
Автор

Jesus Bob you have a talent to speak outside of topic....I hope your mom will cut your access to internet ;)

valikonen
Автор

Oh. OH! Oh wow. Okay. THEN WHY DON'T THEY JUST SAY SO- /sigh. Thank you for the video.

Draconicrose
Автор

too many useless content. Get to the point. make it concise.

pstha