-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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=dev
instead of the deprecated flag--production
, and--include=dev
instead of the--production=false
.
This matches the change made for the npm prune
documentation in #6987
With the
--omit=dev
flag (or if theNODE_ENV
environment variable is set toproduction
), npm will not install modules listed indevDependencies
. To install all modules listed in bothdependencies
anddevDependencies
when theNODE_ENV
environment variable is set toproduction
, you can use--include=dev
.NOTE: The
--omit=dev
flag has no particular meaning when adding a dependency to a project.
Affected URL
Metadata
Metadata
Assignees
Labels
Documentationdocumentation related issuedocumentation related issueNeeds Triageneeds review for next stepsneeds review for next steps