Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
npm install can resolve and update dependencies and the lockfile. npm ci requires a matching lockfile and performs a clean install without rewriting it.
Use npm install when adding or changing dependencies. npm ci is useful for CI and reproducible project setup: it requires an existing lockfile, fails when its dependency declarations do not match package.json, and removes an existing node_modules before installing. Matching install options can also matter. A clean install is not an update to the newest package versions.