'create-react-app only creates package.json file
Solution 1:[1]
If you are windows user the reason could be you have windows(32 bit) with Node(64 bit) or vice versa. The solution is install node(32 bit) for windows(32 bit) and same for 64 bit too.
Solution 2:[2]
In mac OS, I just added 'sudo' like this
sudo npx create-react-app my-app
And it worked :)
Solution 3:[3]
Happened the same with me!
npx create-react-app my-app was just creating package.json file for me. But I waited for some time and found that my terminal was still active and was installing some more scripts which is actually responsible for creating some directories and files inside'em which we're looking for.
If this doesn't helps, you can run the following in your terminal:
npm install -g create-react-app
This will install the required dependencies to load the directories which should be pre-loaded at the time of creation of a react-app!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mayur Kumawat |
| Solution 2 | Vivek S |
| Solution 3 | Parth Pandya |


