DEV Community

Discussion on: 10 npm Commands that every developer must know

Collapse
 
matthew_riley_b4b8139bce5 profile image
Matthew Riley

npm i - installs the packages in package.json but rewrites the lock file, which because of both the ecosystem and the default behaviour of npm i -s, means that different people working on the same code base can have very different packages installed, which can lead to problems. npm ci is the better way of installing packages from package.json