DEV Community

Discussion on: Include (or omit) Node.js devDependencies in your CI environment

Collapse
 
danawoodman profile image
Dana Woodman

You're correct. npm ci also installs dev dependencies.

Adding --only=prod or --production would not install devDependencies and just install dependencies.

I'll update the article to show both options 👍

Collapse
 
jef profile image
Jef LeCompte

It's now recommended to use --omit=dev over --production 😆 Good ole Node.js.