npm start not working after create-react-app

Kentang picture Kentang · Oct 14, 2018 · Viewed 10k times · Source

I am trying to create a react app with the below steps:

  1. npm install -g create-react-app
  2. create-react-app my-app
  3. cd my-app
  4. npm start

And I get this error:

enter image description here

In error have suggestion to remove webpack dependency but i cant do that because in file package.json dun have that. Here my package.json

enter image description here

For additional information:

  • i am using windows 10
  • npm 6.4.1
  • create-react-app version 2.0.3
  • node v8.12.0

Answer

Devender Verma picture Devender Verma · Oct 14, 2018

Just do following steps:
- delete package-lock.json.
- delete node_modules.
- npm install.

Or

Just try steps mentioned in the error log and you will be fine . enter image description here