React: Src folder missing while running create-react-app command

Created on 17 Dec 2019  路  5Comments  路  Source: facebook/react

Do you want to request a feature or report a bug?
I guess its a Bug

What is the current behavior?
Files are missing while creating react project

Steps to reproduce.
Just run the the :-
"npx create-react-app my-app"

What is the expected behavior?
i guess it should produce node modules, public and src folder

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
NA

Most helpful comment

Try to remove using npm uninstall -g create-react-app command and then try npx create-react-app

All 5 comments

Try to remove using npm uninstall -g create-react-app command and then try npx create-react-app

Hey, you need to install yarn first :

$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt update
$ sudo apt install yarn
$ npx create-react-app app_name

git

while creating a new react project only node modules folder is getting created ..Rest of the folder are missing.
Even after running this command npx create-react-app my-app its not working

git

while creating a new react project only node modules folder is getting created ..Rest of the folder are missing.
Even after running this command npx create-react-app my-app its not working

i have the same problem can you help me

Was this page helpful?
0 / 5 - 0 ratings