Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove reference to deprecated flag in npm-install #8026

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/lib/content/commands/npm-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ into a tarball (b).
By default, `npm install` will install all modules listed as
dependencies in [`package.json`](/configuring-npm/package-json).

With the `--production` flag (or when the `NODE_ENV` environment
With the `--omit=dev` flag (or if the `NODE_ENV` environment
variable is set to `production`), npm will not install modules listed
in `devDependencies`. To install all modules listed in both
`dependencies` and `devDependencies` when `NODE_ENV` environment
variable is set to `production`, you can use `--production=false`.
variable is set to `production`, you can use `--include=dev`.

> NOTE: The `--production` flag has no particular meaning when adding a
> NOTE: The `--omit=dev` flag has no particular meaning when adding a
dependency to a project.

* `npm install <folder>`:
Expand Down