'react-scripts' is not recognized as an internal or external command SOLVED React JS npm start error

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone in this video I'll be showing you  how to solve the error react scripts is not   recognized as an internal or external command  operable program or batch file so I am getting   this error when I try to run my command npm  start which basically starts my react app so   let me show you two possible ways how to solve  this so first thing what you need to do is you   need to go to your package.json file and after  going inside this just press Ctrl F you'll be   having this search or find thing appearing above  in this unit just search for react hyphen scripts   all right so you're going to have this thing  over here and you need to also have this at   these many places under scripts also you need to  have this react scripts thing so if you don't have   this react scripts thing what you need to do is  you have to run this command all right which is   going to be npm installed react scripts space --  save so this is for those who don't have react   scripts thing inside their package.json and if you  are having react scripts inside your package.json   like me no need to run this particular command  alright so only run if you don't have this so   this is the first way and in my case what is the  issue is that whenever you are pulling some react   code from GitHub or if you have just deleted  your node modules folder you need to again   run npm install before starting it alright so in  my case I am not having here node modules folder   which means that I have forgotten to do npm I so  just do npm install or npm i and just hit enter so in case if you're getting this error when  you are doing npm install you can just type npm   install hyphen hyphen force alright this  will basically install the things if you   are getting any errors so here you can  see right I'm having here node modules so   these are the command guys you have to do  npm install react scripts -- save and you   need to run npm install if you already have  the react scripts and if npm install doesn't   work you need to run npm install -- force yeah  these are it these are pretty much the standard   Solutions these three will hundred percent  work alright so now it's taking some time to   download the necessary packages so once the  installation is complete you will be having   the node modules folder here and if you just  run npm start this time you won't be getting   any errors and your react project will be opening  yeah like this in your Local Host the path you   have specified yeah so that's it guys hope you  have found this video useful do check the playlist   of my channel I have done many tutorials in C C++  Java python node.js react JS mongodb MySQL queries   as well as CRUD operations using springboot check  the playlist subscribe me thanks for watching
Info
Channel: United Top Tech
Views: 6,060
Rating: undefined out of 5
Keywords: 'react-scripts' is not recognized as an internal or external command, react scripts error, Error when running npm start, React js error solved
Id: aiLDPaMY7zc
Channel Id: undefined
Length: 3min 3sec (183 seconds)
Published: Fri Jul 21 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.