Skip to content

[BUG] npm ci accepts —before argument #8826

@clintonsteiner

Description

@clintonsteiner

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

NPM Ci accepts the —before argument, but after raising issue #8817

I learned this is not the designed behavior and should not be accepted as an argument to npm ci.

Expected Behavior

Throw error when invalid argument —before is passed to an npm ci command

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run npm ci —before “2024”
  4. See lack of error, also lack of intention to accept that argument since it is missing from docs and —help

Environment

  • npm: 10
  • Node.js: 22
  • OS Name: Mac Os
  • System Model Name:
  • npm config: not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions