Member-only story
Fixes for create-react-app not creating all the files
If you are one of many who ran into this problem then this very small guide may help you.
There are several reasons that lead to this trouble, one of the most common is changing the node version.
Method 1
Remove the create-react-app and reinstall it.
> npm rm -g create-react-app
> npm install -g create-react-app
Method 2
Remove the node and reinstall the latest version.
Method 3
Get the files and folder from your previous projects or someone else’s projects, delete the unnecessary contents and start new.
Keep these files
1. node_modules (folder)
2. public (folder)
3. src (folder)
4. package.json (file)
Finally, install the packages mentioned in the package.json file
> npm install
Method 4
Create your files and folder by yourselves and start working.
If you have some other methods, do mention them in the comments.
Do you want to stay updated on Coding interview tips and new Questions? Please click on subscribe button to get an email when the new tutorial is published.
If you find this article helpful, please clap 👏🏻 for me 🤗.