What is the purpose of package-lock.json?
- A To list the project's scripts
- B To record the exact resolved version of every dependency for reproducible installs
- C To store environment variables
- D To configure the test runner
Answer
To record the exact resolved version of every dependency for reproducible installs
It pins the entire dependency tree so every environment installs identical versions. It should be committed for applications.





