Install and run:

  • npm i -g create-react-app
  • create-react-app name
  • cd name
  • npm start

Error: There might be a problem with the project dependency tree. It is not a bug in the React App, but you can fix it locally. React App requires a dependency: "webpack": "4.19.1" does not need to install it manually. However, it’s a different version of the webpack: C: \ Users \ user \ node_modules \ webpack (version: 4.27.1)

The package.json version of the webpack is not specified. I tried to specify and reinstall - it did not help.

  • Try deleting the node_modules folder and setting npm install in the root - user311306
  • It did not help, the same mistake - Alexander

1 answer 1

This is a conflict between global and local versions of Webpack. You need to remove node_modules along this path:

 /Users/home/node_modules