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

React Set up #10124

Open
salmanhp opened this issue Nov 22, 2020 · 5 comments
Open

React Set up #10124

salmanhp opened this issue Nov 22, 2020 · 5 comments

Comments

@salmanhp
Copy link

Failed to create react using ==> npx create-react-app my-app

@zaycation
Copy link

Hey, mate. Can you please show the error the console is displaying? Also, it'd be helpful to provide us any logs that may have been associated!

Also, check out this thread and some others that may have had the same issue: https://stackoverflow.com/questions/53657920/i-cant-install-react-using-npx-create-react-app

@salmanhp
Copy link
Author

my error showing like that ...

npm ERR! code ENOLOCAL
npm ERR! Could not install from "peada\AppData\Roaming\npm-cache_npx\424" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Salman Hossein peada\AppData\Roaming\npm-cache_logs\2020-11-22T14_52_57_214Z-debug.log
Install for [ 'creat-react-app@latest' ] failed with code 1

@sahilpurav
Copy link
Contributor

Please try doing npm install npm@latest -g and then hit npx create-react-app my-app

@salmanhp
Copy link
Author

I Tried it But sowing same error.....

@sahilpurav
Copy link
Contributor

@salmanhp - I just deep-dived into the issue again and it looks like it is a problem with your computer name as it has a space in it. See this issue in npx.

I'd recommend npm install -g create-react-app. And after that, create-react-app my-app

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

3 participants