Search code examples
reactjscreate-react-app

Vulnerabilities every time i use create-react-app


enter image description here

63 vulnerabilities when using create-react-app how do i fix this?

ive ran npm audit fix, and it fixes 0 out of 63 vulnerabilities

enter image description here


Solution

  • You're using latest version of node.js and that's why facing issue. The current version of node has miscellaneous bug.

    Using older version of node.js will solve the issue.

    You can keep looping on this issue and use the latest release after it is fixed.

    Or, you can also exclude low vulnerabilities dependency like below as mentioned in the issue:

    npm audit --registry=https://registry.npmjs.org --parseable | grep -V
     https://nodesecurity.io/advisories/786 | wc -l
    

    Alternatively, you can use npm-audit-resolver which is good rather than excluding the dependencies.