cli icon indicating copy to clipboard operation
cli copied to clipboard

[DOCS] Missing flags of npm install and npm ci

Open PatrikTrefil opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This is a CLI Docs Problem, not another kind of Docs Problem.

  • [X] This is a CLI Docs Problem.

Description of Problem

Documentation for npm install and npm ci does not include the --include, --only, --no-optional flags in version 8.x.

Potential Solution

Include --include, --only, --no-optional flags in the documentation.

Affected URL

No response

PatrikTrefil avatar Jul 28 '22 08:07 PatrikTrefil

only and optional are deprecated flags and should not be included. include is the inverse of omit and probably should be included.

wraithgar avatar Jul 28 '22 20:07 wraithgar

Since it might take a little while to show up in the official documentation, could someone in this issue give an informal explanation of how --include works?

s100 avatar Dec 20 '22 15:12 s100

Historical jeans

AKayy2020 avatar Dec 22 '22 23:12 AKayy2020

Since it might take a little while to show up in the official documentation, could someone in this issue give an informal explanation of how --include works?

The --include option allows for defining which types of dependancies to install.

It is the inverse of --omit=<type>.

Dependency types specified i --include won't be omitted, regardless of the order in which omit/include are specified.

siemhesda avatar Sep 22 '23 17:09 siemhesda