Node.js · Junior · Question 23 of 75

What is package-lock.json for?

Explanation

package.json usually has version ranges like ^4.2.0. The lock file pins the exact tree, including nested dependencies. It should be committed to git.

Further reading

Problem with a question

Node.js · Junior · question 23

Test yourself

Take the Node.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz