npm i vs npm ci - 08-17-20

Today I discovered npm ci from a colleague. It does a clean install wiping out the node_modules before installing. For me this is perfect because I often find myself doing

$ rm -rf node_modules && npm i

no need just run npm ci

*note: you’ll still want to do npm i when installing packages as npm ci does not update package*..

source:

\- [ npm, js ]