# 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](https://www.ask-codey.com/glossary?category=nodejs&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/package-lock-json
