This command is similar to npm install,
except 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.
npm ci will be significantly faster when:
There is a package-lock.json or npm-shrinkwrap.json file.
This command is similar to
npm install
, except 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.npm ci
will be significantly faster when:package-lock.json
ornpm-shrinkwrap.json
file.node_modules
folder is missing or empty.More details on official docs.