npm config set package-lock false

Category: Node.js & npm/yarn

npm config set package-lock false

Disable lockfile generation

Stops npm from creating package-lock.json on install, which trades reproducibility for simpler diffs. Lockfiles pin exact dependency versions so CI and teammates install identical trees, so disable only deliberately. Re-enable with npm config set package-lock true.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.