-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Documentationdocumentation related issuedocumentation related issueNeeds Triageneeds review for next stepsneeds review for next steps
Description
Is there an existing issue for this?
- I have searched the existing issues
This is a CLI Docs Problem, not another kind of Docs Problem.
- This is a CLI Docs Problem.
Description of Problem
The deprecated --production flag is used when it should likely be --omit=dev in cli/docs/lib/content/commands/npm-install.md here on lines 55-62.
Potential Solution
I suggest using:
--omit=devinstead of the deprecated flag--production, and--include=devinstead of the--production=false.
This matches the change made for the npm prune documentation in #6987
With the
--omit=devflag (or if theNODE_ENVenvironment variable is set toproduction), npm will not install modules listed indevDependencies. To install all modules listed in bothdependenciesanddevDependencieswhen theNODE_ENVenvironment variable is set toproduction, you can use--include=dev.NOTE: The
--omit=devflag has no particular meaning when adding a dependency to a project.
Affected URL
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Documentationdocumentation related issuedocumentation related issueNeeds Triageneeds review for next stepsneeds review for next steps