Search code examples
reactjscreate-react-app

How can I fix an issue with create-react-app where only node_modules, package.json, and package-lock.json are created?


I know there are other previous posts on this. However, they are from a few years ago, making them somewhat outdated. The issue I am having just started as of May 2, 2022.

If I run npx create-react-app my-app, the only thing that gets created is the folder and two files mentioned in the question title. I've spent over an hour trying previous solutions to other questions and using other sources, but the issue is still not resolved. I was wondering if anyone could help me?

Thanks


Solution

  • This is hard for me to answer without knowing the stack you have installed on your computer, however based on the information provided, you could be on your way!

    From your terminal, I would try to navigate into the new app by:

    `cd my-app`
    

    Then, to start the server, run:

    `npm start`
    

    Here are some resources that I think will help you in your scenario: https://reactjs.org/docs/create-a-new-react-app.html

    Good luck buddy!