Here is a quick fix that works for windows:
On the package.json file edit the start command
"start": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",