DEV Community

Cover image for npm ci vs npm install
BOX PIPER
BOX PIPER

Posted on • Edited on

npm ci vs npm install

Starting MARCH 5, 2018, all npm users can take advantage of a new install command called npm ci.

npm install :- install new dependencies, or update existing dependencies (e.g. going from version 1 to version 2).

npm ci :- when you want to run continuous integration tools like Jenkins or GitLab, etc., it doesn't modify the package-lock.json file. It’s meant to be used in automated environments such as test platforms, continuous integration, and deployment – or any situation where you want to make sure you’re doing a clean install of your dependencies.

Essentially, npm install reads package.json to create a list of dependencies and uses package-lock.json to inform which versions of these dependencies to install.
To continue reading, head over to Box Piper source.

To read more such interesting topics, follow and read BoxPiper blog.

Support my work and buy me a Coffee. It'll mean the world to me. 😇

Top comments (2)

Collapse
 
boxpiperapp profile image
BOX PIPER

Sure. Currently, we use npm.

Collapse