Oddbean new post about | logout
 **

npm Install vs npm Ci: Understanding the Differences

Developers familiar with npm know about `npm install`, but a lesser-known command is `npm ci` (clean install). This article explains the key differences between these two commands, particularly in continuous integration (CI) environments. `npm ci` prioritizes speed and consistency by skipping package-lock.json updates and strictly adhering to lock file dependencies. It also deletes the node_modules folder before installation, ensuring a clean slate.

**

Source: https://dev.to/rameshpvr/npm-i-vs-npm-ci-49i9