npm start error in React (SOLVED)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this tutorial we'll look at how to fix npm start bug in react alright so I have a couple of solutions for you the first option that you have to to fix things is to Simply remove the node modules folder so you can just right click and delete this and it's going to take some time because it's a huge folder now at some point it's removed and then what you can do you can open your terminal and you're simply going to run npm install right so just install everything again it's going to look at the package.json to see which packages it needs to install but this will make sure that everything as it relates to node modules has been installed properly and for a lot of people this seems to solve it so make sure you try out this solution and I'll wait until it's finished okay So eventually it should have installed everything again and you can try running npm start again and it is using react script right so if it's still not working then let me just close out of here if it's still not working then try installing react scripts so you can just write npm install react script and see if that solves it right so it's going to take some time and then you can try again if all of that hasn't solved it the last option you may want to try is create a DOT EnV file right this is what people use for environment variables and one of the options that seems to work is to set skip pre-flight check to true right so we're setting this variable here no quotation marks and save the file here open your terminal again and Run npm start again and see if that works right so one of those Solutions should solve your issue by the way if this was helpful I'd really appreciate it if you could like And subscribe also check out my courses on CSS and JavaScript if you want to take those skills to an advanced level because in there we will build some beautiful real world projects from scratch so you can see how everything fits together and really Master CSS or JavaScript and I will also release other courses soon like react and node.js so if you want to be notified then make sure you are subscribed to the email newsletter you can find the link in the description thanks for watching and I hope to see you soon
Info
Channel: ByteGrad
Views: 22,424
Rating: undefined out of 5
Keywords:
Id: 3hE_5r5hPcE
Channel Id: undefined
Length: 2min 5sec (125 seconds)
Published: Wed Dec 07 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.