Use of --dev deprecated for npm · Issue #1983 · pre-commit/pre-commit · GitHub
Skip to content

Use of --dev deprecated for npm #1983

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:

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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