Install only production dependencies.
Section: CI and Lockfiles
Install production deps only
bash
bash
pnpm install --prodExplanation
Install only production dependencies.
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 CI and Lockfiles
Prune to production deps
Remove devDependencies from an existing install.
CI install with frozen lockfile
Common CI install pattern that refuses lockfile changes.
Fetch packages into virtual store
Fetch packages into the store without linking node_modules; useful in image builds.
Install while ignoring scripts
Avoid running package lifecycle scripts during install.