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

[BUG] audit fix does not update version in package.json #7178

Closed
2 tasks done
apmyp1990 opened this issue Jan 25, 2024 · 2 comments
Closed
2 tasks done

[BUG] audit fix does not update version in package.json #7178

apmyp1990 opened this issue Jan 25, 2024 · 2 comments
Labels
Awaiting Information further information is requested Bug thing that needs fixing Release 9.x work is associated with a specific npm 9 release

Comments

@apmyp1990
Copy link

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

I am using axios in my project, and now npm audit tells me that there is a vulnerability in axios. After running npm audit fix, the version of axios in my package.json does not update. In the package-lock.json, my first level axios is also not updated, but a few levels deeper it is update as an dependency for another package.

Expected Behavior

I would expect that the version in the package.json will also be updatetd.

Steps To Reproduce

No response

Environment

  • npm: 9.8.1
  • Node.js: 16.15.0
  • OS Name: Windows 11
  • System Model Name:
  • npm config:
; node bin location = C:\Program Files\nodejs\node.exe   
; node version = v16.15.0
; npm local prefix = censored   
; npm version = 9.8.1
; cwd = censored
; HOME = censored
; Run `npm config ls -l` to show all defaults.
@apmyp1990 apmyp1990 added Bug thing that needs fixing Needs Triage needs review for next steps Release 9.x work is associated with a specific npm 9 release labels Jan 25, 2024
@milaninfy
Copy link
Contributor

@apmyp1990 Can you please share what package version is mentioned in your package.json before npm audit fix? what exact package version you installed to replicate this issue?

@milaninfy milaninfy added Awaiting Information further information is requested and removed Needs Triage needs review for next steps labels Mar 19, 2024
@milaninfy
Copy link
Contributor

Closing due to age. If this is still a problem please feel free to reopen this issue, or create a new issue w/ steps to reproduce.

@milaninfy milaninfy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Information further information is requested Bug thing that needs fixing Release 9.x work is associated with a specific npm 9 release
Projects
None yet
Development

No branches or pull requests

2 participants