Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 3fbfc81

Browse files
authored
docs: update reference to npm install
update to docs, as 'npm install' doesn't use 'exactly' the packages defined in package-lock.json, it will update package-lock.json based on semver of packages.json. 'npm ci' will do what the text describes'
1 parent c31c13c commit 3fbfc81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/documentation/0020-package-lock-json

src/documentation/0020-package-lock-json/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ It could be you, or another person trying to initialize the project on the other
2626

2727
So your original project and the newly initialized project are actually different. Even if a patch or minor release should not introduce breaking changes, we all know bugs can (and so, they will) slide in.
2828

29-
The `package-lock.json` sets your currently installed version of each package **in stone**, and `npm` will use those exact versions when running `npm install`.
29+
The `package-lock.json` sets your currently installed version of each package **in stone**, and `npm` will use those exact versions when running `npm ci`.
3030

3131
This concept is not new, and other programming languages package managers (like Composer in PHP) use a similar system for years.
3232

0 commit comments

Comments
 (0)