Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'react-scripts' is not recognized as an internal or external command, operable program or batch file

I am learning to react. The version I installed is 16. I installed prop-types via npm after I got an error that 'react-scripts' is not recognized as an internal or external command, operable program or batch file."

enter image description here

like image 420
David Essien Avatar asked Feb 23 '18 06:02

David Essien


People also ask

How do you fix react-scripts is not recognized as an internal or external command operable program or batch file?

To solve the error "react-scripts is not recognized as an internal or external command, operable program or batch file", open your terminal in your project's root directory and install the react-scripts package by running npm install react-scripts and clear your npm cache if necessary.

How do you fix react-scripts is not found?

Run the npm install react-scripts command to solve the "react-scripts: command not found" error. If necessary delete your node_modules directory and your package-lock. json file, reinstall your dependencies and restart your development server.


1 Answers

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

like image 146
Yogesh Borad Avatar answered Oct 10 '22 16:10

Yogesh Borad