0

When i freshly install react application with React CRA method it shows me :

74 vulnerabilities (69 moderate, 5 high)

and when i run :

npm audit fix --force

it throws :

126 vulnerabilities (10 low, 78 moderate, 30 high, 8 critical)

Any help to fix these issues will be appreciated.

enter image description here

Ritesh
  • 4,720
  • 6
  • 27
  • 41
  • I don't know if this is the same case but, have you tried [this](https://stackoverflow.com/a/69576030/464538) ? – Klian Jul 03 '23 at 05:58
  • i have tried that as well but that doesn't fix my issue and neither the downvoting solved my issue either. – Ritesh Jul 03 '23 at 06:06
  • Are you sure you're using the latest version of CRA? Try `npx create-react-app@latest`. FYI none of these things are errors, nor should they stop you working with React. – Phil Jul 03 '23 at 06:29
  • @Philisonstrike i tried with your command but it still giving me 74 vulnerabilities (69 moderate, 5 high)... i think there is no way to fix these issues..!! – Ritesh Jul 03 '23 at 06:47
  • Like I said, this isn't going to stop you building your app. If you feel it's really important, raise an issue against [create-react-app](https://github.com/facebook/create-react-app/issues) but check first, somebody else has probably already reported it – Phil Jul 03 '23 at 07:00
  • 1
    Just ignore the audit warnings. See https://github.com/facebook/create-react-app/issues/11174 – Phil Jul 03 '23 at 07:14
  • Agree with @Philisonstrike that you should ignore the warnings, they came from dev dependencies anyway and only appear in build files. But to be safe you can make sure that they always came from CRA when you install something. – jcubic Jul 03 '23 at 09:48

0 Answers0