Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facing issue while creating-react-app #10582

Closed
Ayushikhare431 opened this issue Feb 20, 2021 · 5 comments
Closed

facing issue while creating-react-app #10582

Ayushikhare431 opened this issue Feb 20, 2021 · 5 comments

Comments

@Ayushikhare431
Copy link

i tried to create-react-app by both npx and npm but only 3 files are creating --package-lock.json, package.json, node modules .....
not other then these 3 . plz do someone help me ,, i manually created all the files but this should not be the solution still various things is missing

also there is some prob of npm funding of github ,, how to solve this??

@TanishqSingla
Copy link

TanishqSingla commented Feb 22, 2021

The correct command is npx create-react-app app-name. The command first gets all the node modules required and then it creates the folder structure other files so there must be a problem when the command finishes getting the node modules, check if any error is thrown after downloading all the node modules.
Also can you elaborate on the problem of npm funding.

@peterbe
Copy link

peterbe commented Feb 23, 2021

Mine's a (later) duplicate but it describes the problem more accurately I think: #10601

@boomshakar
Copy link

Do you have space in your username?
Cuz most people with this error does,

see this fix #6512 (comment)

@chaurasiawadh
Copy link

I solved this using the following command.

npm uninstall -g create-react-app

npm cache clean --force

then

npx create-react-app project_name --template all

Thanks for this! Worked for me too.

@petetnt
Copy link
Contributor

petetnt commented May 11, 2021

@chaurasiawadh is correct: cleaning up any old global installations will help the problem.

You should

  1. Remove global installations CRA (npm uninstall -g create-react-app, or if you are using yarn use yarn global remove create-react-app
  2. Run npx create-react-app project_name again

@petetnt petetnt closed this as completed May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants