Search code examples
node.jsnpmnpm-install

Not able to install react-router-dom


enter image description here Why react-router-dom is not installing in my vs-code and how to fix it.

It shows 6 high vulnerabilities, I also run npm audit fix --force and npm audit but nothing happened. How to remove these vulnerabilities?


Solution

  • Just tried it, react-router-dom installs and also works on your part as I can see.

    Try to fix the vulnerabilities by doing these steps:

    npm outdated // run to check outdated npm packages
    
    npx npm-check-updates -u // run to check updates outdated npm packages
    
    npm install // run to update npm packages
    

    Source: https://stackoverflow.com/a/70920497/12772716