8000 Use of --dev deprecated for npm · Issue #1983 · pre-commit/pre-commit · GitHub
[go: up one dir, main page]

Skip to content
Use of --dev deprecated for npm #1983
@henryiii

Description

@henryiii

I'm seeing this warning sometimes (output seems to be hidden unless the install fails):

npm WARN install Usage of the `--dev` option is deprecated. Use `--include=dev` instead.

Which seems to be because of this:

'npm', 'install', '--dev', '--prod',

The problem with this command was that it installed dependencies recursively, rendering them useless (AFAICT, not a node expert). The developers decided it was only a footgun in npm/npm#5554 (comment) and deprecated in npm/npm#6200.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0