0

I am new to React. I am trying to create a react app. I am facing issue while creating a react-app. Please help me.

npm ERR! code EEXIST
npm ERR! path C:\Users\MY PC\AppData\Roaming\npm\node_modules\create-react-app\index.js
npm ERR! dest C:\Users\MY PC\AppData\Roaming\npm\create-react-app.cmd
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\MY PC\AppData\Roaming\npm\node_modules\create-react-app\index.js' -> 'C:\Users\MY PC\AppData\Roaming\npm\create-react-app.cmd'
npm ERR! File exists: C:\Users\MY PC\AppData\Roaming\npm\create-react-app.cmd
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\MY PC\AppData\Roaming\npm-cache\_logs\2020-05-20T08_41_05_617Z-debug.log
RobC
  • 22,977
  • 20
  • 73
  • 80

1 Answers1

0

Delete the node_modules directory completely. Run npm install again.

Saeid Shoja
  • 159
  • 2
  • 8
  • This is not a suitable answer because the "node_module" directory doesn't exist when you run into this error when trying to create a react app. The entire directory of the app is deleted. – Obie_One Dec 27 '22 at 08:36