npm Install & Dependencies/Install production deps only

Skip devDependencies during install.

Section: Lockfiles and reproducible installs

Install production deps only

bash
bash
npm install --omit=dev
Explanation

Skip devDependencies during install.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Lockfiles and reproducible installs
Install with legacy peer handling
Bypass peer dependency auto-resolution conflicts.
OpenIn sheetbashsame section
CI install production deps only
Use lockfile while skipping devDependencies.
OpenIn sheetbashsame section
CI install without lifecycle scripts
Perform a clean install while skipping lifecycle scripts.
OpenIn sheetbashsame section
Refresh lockfile only
Update package-lock.json without changing node_modules.
OpenIn sheetbashsame section
Create npm-shrinkwrap.json
Create a publishable lockfile.
OpenIn sheetbashsame section
Install a package
Install a runtime dependency.
OpenIn sheetbash2 tag match