yarn install --frozen-lockfile

Category: Node.js & npm/yarn

yarn install --frozen-lockfile

Install without updating yarn.lock — fails if lockfile would change, ideal for CI

Installs from yarn.lock without modifying it. Fails if the lockfile is out of sync with package.json — the correct way to install in CI.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.