Docker and CI/CD · Junior · Question 49 of 75

Why use npm ci rather than npm install in CI?

Explanation

npm ci deletes node_modules and installs exactly what the lockfile says, never updating it. Builds become reproducible.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 49

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz