Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm audit fix --force oscillates forever between two vulnerable versions #41680

Closed
mcandre opened this issue Jan 24, 2022 · 1 comment
Closed
Labels
wrong repo Issues that should be opened in another repository.

Comments

@mcandre
Copy link

mcandre commented Jan 24, 2022

Version

v16.13.2

Platform

Darwin najma.attlocal.net 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64

Subsystem

No response

What steps will reproduce the bug?

  1. Run npm audit fix --force.
  2. Run it again.

The first run will upgrade a package such as JSHint to 2.13.3. The next run will reset the package back to the old version.

Running a third time and a fourth repeats this behavior indefinitely.

How often does it reproduce? Is there a required condition?

Every time.

What is the expected behavior?

npm audit should behave idempotently.

What do you see instead?

npm audit --force cycles between two bad versions, each featuring vulnerabilities.

Additional information

No response

@Trott Trott added the wrong repo Issues that should be opened in another repository. label Jan 24, 2022
@Trott
Copy link
Member

Trott commented Jan 24, 2022

The repository for npm is https://github.com/npm/cli. Please open the issue there.

This is not the first time that you've opened npm issues in this repository and been told that it is not the right place. What can we do to stop you from opening npm issues in this repository?

@Trott Trott closed this as completed Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wrong repo Issues that should be opened in another repository.
Projects
None yet
Development

No branches or pull requests

2 participants