DEV Community

Discussion on: The Anatomy of package.json

Collapse
 
bernardwiesner profile image
Bernard Wiesner

Nice article, but I think one of the most important points was not mentioned. The difference between devDependencies and dependencies when running npm install.

When you run npm install all dependencies are installed, both those in devDependencies and in dependencies, but when you run npm install --production only those in dependencies are installed. I have seen many devs always running npm install even in production.