Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

95
Visualizações
Auditing packages brings back more errors

I tried to fix some issues in my project by running npm audit fix

which didn't do much, however when I append --force flag the return result is worse than previously:

fix available via `npm audit fix`

10 vulnerabilities (2 moderate, 8 high) 😮‍💨

using the --force

fix available via `npm audit fix --force`

79 vulnerabilities (14 low, 23 moderate, 38 high, 4 critical) 🤯

I'd use yarn if I could however I can't. How else would one fix these with npm or do I need to go into each one and do it manually?

Thanks in advance 🌚

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

First up, reason you can see more issues when you force is that updated package might legit still have more audit findings.

Please note that using --force is not always a good option, especially on an existing older code base, since forcing the dependency updates might introduce breaking change which will need code changes. If you are up for those then by all means force it.

Finally, there's no silver bullet approach to updating dependencies with audit findings. There may or may not be actual fixes available.

Generally speaking, yes auditing them one at a time, is a good idea. This way you can read the details of findings. Look at the repos and see what the fixes or repercussions of updating are.

Also, using Yarn doesn't necessarily help you with audit findings. Since yarn is just another tool to pull down the exact same lib versions.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda