Skip to content

[BUG] npm audit fix command is deleting npm sections from package.json #1690

Description

@alvarocamillont

Current Behavior:

When I run npm audit fix on my project, it is deleting sessions of my package.json file such as "description" and "scripts"

Expected Behavior:

I expect the command only change my dependencies.

Steps To Reproduce:

  1. clone this repo https://github.com/po-ui/po-angular.git
  2. Run npm i
  3. Run npm audit fix
  4. See package.json

Environment:

  • OS: Ubuntu 20.04
  • Node: v12.18.2
  • NPM: 7.0.0-beta.5

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 fixingRelease 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