Skip to content
Advertisement

i am just trying to install the package of react js but i am getting errors

I am just trying to install react but I am getting errors. I have installed npm -v 8.12.1 version in my system. I have tried to downgrade react but it doesn’t help

I have tried these type:

  1. update npm npm install npm -g
  2. downgraded react to "react": "15.3.0"
  3. cleared cache: npm cache clear
  4. removed node_modules, rm -rf node_modules,
  5. reinstalled node_modules, npm install
JavaScript
JavaScript

Advertisement

Answer

As the error reads, you have dependency conflict. Run the command with –legacy-peer-deps.

JavaScript
Advertisement