go to packages.json then, add this "--openssl-legacy-provider" to the scripts
BEFORE (ANTES DE EDITAR)
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build"
}
AFTER (LUEGO DE EDITAR)
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build"
}
for vuejs can install nvm (node version Manager)
1. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
2. Open your project
3. Open the terminal in your project
4. Run this command nvm install 16.13.0 or any older version
5. After the installation is completed, run nvm use 16.13.0