Node.js · Junior · Question 22 of 75

What is the difference between dependencies and devDependencies?

Explanation

Test runners, linters and bundlers go in devDependencies (npm i -D). npm install --omit=dev installs only production dependencies, which keeps production images smaller.

Further reading

Problem with a question

Node.js · Junior · question 22

Test yourself

Take the Node.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz