I started learning to React recently. I was following The Net Ninjas' over YouTube. So as I was instructed to install Node.js, I downloaded and ins...
For further actions, you may consider blocking this person and/or reporting abuse
Any Idea about this bro????
Could not find a required file.
Name: index.html
Searched in: C:\Users\Harsh Patel\React_Programs\my_website\public
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start:
react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Harsh Patel\AppData\Roaming\npm-cache_logs\2020-11-07T06_46_48_730Z-debug.log
It's hard to say something on basis of this error. But most probably, as it says, the program needs an index.html file. Maybe you renamed it or deleted it. Can you DM me codesandbox of your app if you didn't find a solution?
I'm back to square one.. after following process 2..
well I was wondering possibly how many times do I need to go through with this..
Umm, when I had this issue I got away by following process 2 twice after that npx create-react-app never stuck on my machine and I'm still using that same installation.
There's on more thing I wanna ask.. whenever I m using class component in the constructor the super keyword is striked out but the app runs just the fine.. why is that so.. and what can i do??
Hey, I didn't come around something like this before but I have seen people talking about this. I guess, The code is fine and this is something that vscode has induced in the program. As far as, you are not pushing your code into production. You shouldn't be worried about it IMO.
alright.. well i installed yarn in between which was causing the issue i uninstalled it ya
yeah worked for me too thanks a lot
Got stuck at
"**27 vulnerabilities (16 moderate, 9 high, 2 critical)
To address all issues (including breaking changes), run:
npm audit fix --force**"
for 4 days without creation of public and src folders.
This helped a lottttt .......
Thank you, the nightmare is over !!!!
thanks bro
I wanna thank you , cause i spent hrs trying to find a solution and the first suggestion worked for me, although my pc is 64bit installing 32bit worked for me!!!!!
Glad it could help you!
Thanks
:)
thanks bro
hey man! Welcome.
I was stuck at 0 vulnerabilities and i tried step 1. And now it shows the term "npx is not recognised as.....".need to solve this plz
Did you try installing npx globally? Although npx comes installed with npm still try installing it globally.
Hy thankyou soo much. It worked👍🏻👍🏻👍🏻
:)
Wow I cannot believe this actually worked. So basically it was just getting stuck and we resumed it. Thank you so very much :)
Yep :)
this was so helpful. Thank you so much!
Glad to hear it was helpful!!
Thank you mate, i can fix with no 1.
Hey man, glad it solved your problem :)
Thank you so much!
Many thanks sir.
This worked for me:
npx clear-npx-cache