0

Full disclosure I am brand new to React. this is the original response I get when I tried to create-react-app

I tried to uninstall react-scripts and create-react-app but was given these errors

I was following a video tutorial and In the beginning I wrote "sudo -g create-react-app@1.5.2". Then i ran create-react-app first-app. In the video the guy was shown all the different npm explanations but I got these back. How do I clear this up so I can create the app successfully?

AnaisZ
  • 3
  • 1
  • have u tried uninstalling using sudo ```sudo npm uninstall create-react-app -g``` ? – Anup Apr 29 '21 at 14:01

1 Answers1

0

This is a similar post to yours and contains the required information to fix your problem.

https://stackoverflow.com/a/59189242/10746940

Ole Nor
  • 135
  • 8
  • thank you! I am getting another error saying that the directory contains files that could conflict: node_modules/, package-lock.json, package.son. How would I go about uninstalling those? – AnaisZ Apr 29 '21 at 17:27
  • You can delete node_modules and run `npm install` again. If you have more copies of package-lock.json and packge.json delete the oldest verison, if not dont. Please mark my answer as correct so that others might benefit aswell. :) – Ole Nor Apr 29 '21 at 18:11