A development dependency supports activities such as testing, linting, or debugging but is unnecessary for runtime execution. Excluding it from production deployments reduces installed application size. section 8.2.2
Manage development dependencies by:
- Inspecting the complete dependency tree to identify development packages and duplicated versions. section 8.2.2
- Auditing unexpectedly large packages before replacing or removing them. section 8.2.2
- Running npm ci --omit=dev for production deployments so development-only packages are not installed. section 8.2.2
npm ls --all
Use npm ls --all to inspect the full dependency tree and trace packages that may be unnecessary for production. section 8.2.2





