1. windows
// package.json
"scripts": {
"start": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build"
}
2. linux
// package.json
"scripts": {
"start": "export NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
"build": "export NODE_OPTIONS=--openssl-legacy-provider && react-scripts build"
}