-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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] npm audit fix doesn't work #3472
Comments
Same issue here in my project (https://github.com/trickfilm400/vantage-node),
this did not helped in any way Environment:
|
i'm having the same problem in my project https://github.com/chase-moskal/xiome |
Encountering the exact same issue. |
Same issue, I ran the suggested force and I don't get better results. Do we need to manually add the updates for each package? |
Issue also exist in
|
Same issue here, getting worse and worse each time I run
Started with:
But after running And after running One time it said I'm now attaching all output from the above, which shows the modules it was reporting. |
Is there any hope of this issue being resolved? |
same problem here. Npm 8.1.4 |
+1, |
I resolved this by removing As an experiment I added I suggest upgrading to the latest npm (if possible) and searching your package.json AND package-lock.json for Environment: @kleinfreund I noticed your package-lock.json has |
Same problem... This is a significant problem. My environment: Ubuntu 18.04 |
this does not fix the problem for me, I didn't have |
Same problem for me. MacOS 11.6 |
Same problem here: MacOS 12.1 |
Same |
same |
Same |
3 similar comments
Same |
Same |
Same |
Windows 10 |
MacOS |
same issue npm -v |
Same issue. node --version |
Same problem. node --version npm --version |
same here. |
Closing this issue as there doesn't seem to be an interest in acknowledging or fixing it. I've stopped using (or trying to use) |
same here. was forced to use the "overrides" section of packages.json to force the fixes. |
It does work, just not for all packages. It would be handy to get some feedback from some developer's investigation, so we can all know what to do to get rid of the vulnerabilities. For an example, mine Maybe do not mention "fix available via |
Same problem here: Ubuntu 20.04.5 |
Having the same issue. Windows 11/WSL2 Related to:
Some detailsTwo different projects on the same machine. Regarding
|
did you solve this eventually? |
Yes. In this case the WSL instance could not make changes since the files were hosted in a windows directory. The solution at the time was to move the project into the Ubuntu environment. |
was having this issue. 'npm rebuild' ended up solving it for me.. |
If still experiencing this issue, try this $ npm install -g npm-check-updates |
This issue is known for years and it looks like there is no desire to fix it... |
If no one wants to fix it and it's broken than why we are "officially" being recommended to use it in the console?
Remove that misleading note and developers will (at least partially) stop wasting their time... |
I just install new react project and already have this annoying message about vulnerabilities. It's unbearable |
I have the same issue (windows 2016 server)
|
Tried this issue, but it just undid the ncu updates and downgraded everything. |
This kind of worked for me. A few were still hanging on so I had to cd into the actual package's directory and then run ncu to get them to update. |
what's the point in closing the bug if it's not fixed? I can't understand this. The npm's behaviour is really misleading, the command can't fix anything but keeps suggesting it, removing package-lock doesn't help at all. It seems to be a completely broken feature. Please remove it |
I understand that this is a frustrating state of npm to be in, but I don’t see how keeping this issue open helps anyone. I opened it well over two years ago and it was for the longest time the most upvoted open issue in npm/cli by far. I explained why I closed it, too. Note that the issue wasn’t closed by npm, but by me as the one who reported it initially. npm can open it again at any time and signal if they have any intention of addressing it. |
yes, but honestly it doesn't seem to be a valid reason. it's up to you indeed as you're the topic started. but closed issues never get any attention. |
I have the same issue with the |
That's why you should use npm-check-updates. It's a CLI tool that helps you to manage your packages ugrades |
Before trying to fix anything, |
Aqui está o que você pode fazer para atualizar o react-scripts: Atualizar o react-scripts para a versão mais recente: Execute o comando abaixo para atualizar o pacote: npm install react-scripts@latest Verificar novamente: Após a atualização, você pode executar o comando npm outdated novamente para garantir que a atualização foi bem-sucedida. Verificar se há outras dependências desatualizadas: Se houver mais pacotes desatualizados, você pode seguir o mesmo procedimento para atualizá-los. Use o comando: npm update Testar o projeto: Após atualizar o react-scripts, execute o seu projeto para verificar se tudo continua funcionando corretamente: npm start |
Is there an existing issue for this?
Current Behavior
In my project, when running
npm audit
, one of the reported vulnerable packages is listed with the message “fix available vianpm audit fix
”, but runningnpm audit fix
doesn’t lead to any updated packages and the exact same output as from the earlier run ofnpm audit
is logged.This occurs on kleinfreund/vue-accessible-color-picker@35bec0e.
Which dependency from my package.json file is actually the vulnerable one I cannot tell with the new output of
npm audit
in npm 7. This is what the output looks like:Expected Behavior
When seeing a message with the clear instruction “fix available via
npm audit fix
”, I expect this to be truthful andnpm audit fix
to always produce a changed package-lock.json file.Steps To Reproduce
git clone https://github.com/kleinfreund/vue-accessible-color-picker.git
git checkout 35bec0e751abad872de79657053cb8de07321faa
to checkout the commit on the project’smain
branch at the time of writing this.npm install
npm audit
.Observe how currently this includes an entry with the message “fix available viaFor this particular advisory, this is no longer the case, unfortunately.npm audit fix
”.npm audit fix
Environment
The text was updated successfully, but these errors were encountered: