DEV Community

Discussion on: Explain package-lock.json like I am five

Collapse
 
rhymes profile image
rhymes

No, it reads the package-lock.json.

package.json is for you as the developer
package-lock.json is for me (or the server) as the installer

The package.json will be considered only if the lock is missing, hence the reason why they invented the lock, because the package.json is not enough to guarantee repeatability