0

I have a React app and npm start doesn't work.

I'm trying to delete node_modules and package-lock.json but I get these errors again.

Could not find a required file.
Name: index.html
 Searched in: C:\Users\avihai\Desktop\projects\super-market\public
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-scripts start `
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\avihai\AppData\Roaming\npm-cache\_logs\2020-11-08T16_32_26_415Z-debug.log
7
  • Are you running this command from your project root directory? Do you have index.html file in your public folder? Commented Nov 8, 2020 at 17:00
  • yes i run it from my root directory and no i didnt have a index.html file in my public Commented Nov 8, 2020 at 17:15
  • i change the project name and the directory name maybe this is the problam? Commented Nov 8, 2020 at 17:17
  • If you are not using other build frameworks like netxjs react apps need index.html file in your public folder. Can you share your folder structure package.json file? Commented Nov 8, 2020 at 17:32
  • i have index.js and i try to move him to public folder but i get the same errors Commented Nov 8, 2020 at 17:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.