Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the '.package-lock.json' files in node_modules?

I just realized that in the node_modules folder, there are several .package-lock.json files. What is the use of them? And how are they different from the package-lock.json file in the top level folder?

like image 630
Tanh Avatar asked May 22 '26 07:05

Tanh


1 Answers

For the package-lock in your node_modules : Those are the informations such as versions, name, author, dependancies,..etc from the respective libraries you installed in your project.

For the package-lock in your root folder : Same informations but directly related to your project.

like image 189
Sabshane Avatar answered May 23 '26 23:05

Sabshane



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!