try to run the npm command with --force, or --legacy-peer-deps EXEMPLE : npm install react-router-dom --force