'react-scripts' is not recognized as an internal or external command, operable program or batch file
It is an error about react-scripts file missing in your node modules directory at the time of installation.
Now, you can add manually this via the command:
npm install react-scripts
I had the same issue, resolved by simply running following command in the project root folder -
npm install react-scripts --save
If none of the above solutions works and you have already installed the "react-scripts" packageusing
npm install react-scripts --save
You can try the below solution to run the application.
You should see the following in your package.json
file
"scripts": { "start": "react-scripts start", "build": "react-scripts build",}
The script : "start": "react-scripts start" is linked to the file : nodemon node_modules/react-scripts/scripts/start.js
which is used to start the project in the development env
Try to start the project directly using the below commands:
node node_modules/react-scripts/scripts/start.js
or if you have nodemon installed then try
nodemon node_modules/react-scripts/scripts/start.js
Hope this helps :)