Skip to content

[BUG] npm ci runs npm audit #2703

@JGAntunes

Description

@JGAntunes

Apologies beforehand if this has been described or reported somewhere already. I've looked through the issues as well as through both of the release posts - https://blog.npmjs.org/post/626173315965468672/npm-v7-series-beta-release-and-semver-major & https://github.blog/2020-10-13-presenting-v7-0-0-of-the-npm-cli/ - but found no reference to this.

Current Behavior:

Using:

$ npm --version
7.5.4

On a JS project with a package.json and package-lock.json (been using the following as an example).
Running npm ci returns the following:

$ npm ci
(...)
added 2547 packages, and audited 2548 packages in 24s

206 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Running npm ci --audit false returns the following:

$ npm ci --audit false
(...)
added 2547 packages in 20s

206 packages are looking for funding
  run `npm fund` for details

Expected Behavior:

It is my understanding that npm ci should not run npm audit by default. Running npm ci should render the example above that is presented by running npm ci --audit false.

Steps To Reproduce:

  1. In this project
  2. Run npm ci
  3. See the audit related output

Environment:

  • OS: Mac OS X 10.15.7
  • Node: v15.8.0
  • npm: 7.5.4

Metadata

Metadata

Assignees

Labels

💎 Free Internet Points 💎similar to "Good First issue" - although more impactfulGood First Issuegood issue or PR for newcomersRelease 7.xwork is associated with a specific npm 7 releasepr: needs documentationpull request requires docs before merging

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions