2

This image contains details about the error when I am typing npm-start Image 1

I have created a react-app using create-react-app. I have created another app using the same but when I type npm-start, it displays an error and localhost:3000 stops working.

Chandresh Khambhayata
  • 1,748
  • 2
  • 31
  • 60

3 Answers3

0

Missing npm package Use the cmd to install npm package npm install

Check the docs here

Sugumar K
  • 204
  • 2
  • 7
0

To solve this problem you can follow these steps.

First, reinstall node_modules:

rm -rf node_modules/ && npm i //(rm -rf will only work if you have macOS for windows you need to delete node_modules manually)//

Then, start the project:

npm start 

or

yarn start
Atin Singh
  • 3,624
  • 2
  • 18
  • 25
0

This error solved by few easier simple steps. That steps are

  1. Go to your setting
  2. Open your environment variable screen
  3. Delete ComSpec variable completely and click ok
  4. Uninstall your NodeJS
  5. Reinstall your nodejs setup,

Finally it will be work

Slava Rozhnev
  • 9,510
  • 6
  • 23
  • 39