1

I have been learning React for a while now. Today when I tried to started another project it created me an almost empty project.

I used the command I always use create-react-app 'name-of-my-app'. It ran for a while, finished creating an app. I enter the folder with cd 'name-of-my-app', run it in vscode with code . and there all I have is a folder node_modules and files package-lock.json and package.json.

I tried this three times, and every time is the same thing. Any advice. Thanks

  • 3
    try uninstalling and reinstalling create-react-app – TKoL Dec 18 '19 at 14:53
  • 1
    `npm uninstall -g create-react-app && npx create-react-app myApp` using yarn `yarn remove create-react-app && yarn create react-app myApp` – Dupocas Dec 18 '19 at 14:55
  • Don't use yarn if you prefer npm for managing packages it may create versioning issues. – sagar Dec 18 '19 at 14:58

1 Answers1

0

I have the same issue.

I completely removed create-react-app:

npm uninstall -g create-react-app

Install it again:

npm i -g create-react-app