package-lock.json
noun
say it: “PAK-ij lok dot JAY-sun” /ˈpækɪdʒ lɒk dɒt ˈdʒeɪsən/
A file npm writes that records the exact version of every package installed, so everyone who installs the project gets the same ones.
What does package-lock.json do?
package-lock.json records the exact installed version of every package, so everyone installs the same. Commit it.
In a sentence
- “I committed package-lock.json so my teammate's install matches mine down to the last version number.”
- “After npm install, package-lock.json changed because one library had a new version.”
Level: Journeyman · More Node.js terms at this level
Updated