Skip to content

[BUG] npm ci changes package.json #1811

Description

@targos

Current Behavior:

Running npm ci updates the dependencies in package.json (key ordering).

Expected Behavior:

npm ci should either error or ignore the wrong ordering. I expect only npm install to modify files like package.json or package-lock.json.

Steps To Reproduce:

See https://github.com/targos/npm7-cra#issue-1-npm-ci-changes-packagejson

Environment:

  • OS: CentOS 8, Windows 10
  • Node: 14.11.0
  • npm: 7.0.0-beta.11 (note that this did not happen with v70.0-beta.10)

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

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions