npm ci
noun
say it: “EN-pee-EM see-EYE” /ˌɛnˌpiˈɛm ˌsiˈaɪ/
An npm command that removes node_modules and installs exactly what the lock file lists, changing no files.
What does npm ci do?
npm ci (clean install) deletes node_modules and installs exactly the versions package-lock.json records. It never changes package.json or the lock file, and it stops if the two disagree, which makes it the install for build servers.
npm ci
# added 64 packages in 2s
In a sentence
- “The build server runs npm ci, so it tests with exactly the packages the developer had.”
- “npm ci stopped with an error because package.json and the lock file no longer matched.”
Level: Journeyman · More Node.js terms at this level
Updated