Skip to content

Commit 11a4332

Browse files
author
Max Black
committed
docs: remove contradictory statement about package-lock updates
1 parent 69517d6 commit 11a4332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/lib/content/commands/npm-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ See [package-lock.json](/configuring-npm/package-lock-json) and [`npm shrinkwrap
2323

2424
When you run `npm install` without arguments, npm verifies that `package.json` and `package-lock.json` are in sync:
2525

26-
* **If they match:** npm installs the exact versions specified in `package-lock.json`, ensuring reproducible builds across environments. This is similar to `npm ci` but also updates `package-lock.json` if needed.
26+
* **If they match:** npm uses the versions specified in `package-lock.json` to ensure reproducible builds across environments.
2727

2828
* **If they don't match:** If you've modified `package.json` so that the version ranges no longer match what's in `package-lock.json`, npm treats it as if you ran `npm install <package>@<new-version>` for the changed packages. It will update `package-lock.json` with the new resolved versions that satisfy the updated `package.json` ranges.
2929

0 commit comments

Comments
 (0)