-
-
Notifications
You must be signed in to change notification settings - Fork 27k
npx create-react-app is not working #10132
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
Comments
I had the same error and the solution for me was to remove the npm cache folder: |
I solved this using the following command.
then
|
Thanks 😊😊
…On Thu, Nov 26, 2020, 12:02 Rishav Sinha ***@***.***> wrote:
I solved this using the following command.
npm uninstall -g create-react-app
then
npm install -g create-react-app
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMP2GX67QW7J7NQTQF46GF3SRX4PZANCNFSM4T73DQDQ>
.
|
Worked for me as well, thank you.
|
Thanks for this! Worked for me too. |
|
It's not working for me. Please help me!😢 npm ERR! code ENOENT npm ERR! A complete log of this run can be found in: |
"npx create-react-app my-app" instead of "npm install -g create-react-app" |
**npm ERR! code ENOENT npm ERR! A complete log of this run can be found in: I also got the same problem. I try "npx create-react-app my-app" and it seems like not working. Please help |
npm init -y |
I had to run both of the following commands to resolve this issue.
Possibly the wording on the following error message could be updated to indicate that both of these commands may be required. Change: To: |
updatenope, this was my registry being poorly set up—i was trying to hit my company's scoped registry, which hadn't yet ingested original postalso chiming in here. i think there's a dependency issue somewhere, as i've confirmed this is happening on node v12.18.0 and v15.3.0:
|
I am able to solve the problem by first trying to uninstall the npm globally, update the npm, clear the cache then using npx command to create React app. The command is as below:
This is taken from one of the Stack Overflow posts. |
reach009 thnks |
This worked for me. Thank you very much @reach009 |
Worked for me as well. Don't forget to update |
I don't know about this one, but after installing |
I have never had create-react-app installed and still receive this error. In fact, I have no npm packages installed at all, but it still warns that I am running 4.0.0, and that global installation is no longer supported, and then exits. node 14.15.0, have tried clearing the npm cache. |
Running on macOS Catalina 10.15.7 I am facing the same issue mentioned in the first post. I have tried different versions of Node and NPM, npm uninstall -g create-react-app (although never installed CRA globally on my current machine), clear npm cache, reinstall the entire Node. My
I am really out of ideas how to fix this issue. |
This worked for me too, however, I went into Then I ran |
I've also run into the same problem as others above and have been going around in circles for 2 hours. My steps: Yet, I'm still running an error that I have it globally installed: I'm at a loss and stuck in what feels like a maze. My next step is to manually start deleting and files as baalansellers suggests, but I don't think that should be necessary. |
This did the trick for me. Thanks! |
For me I got the same error even though |
For those who ran into similar issues I had, baalansellers (3 above) had the answer. Thanks! Then I ran npx create-react-app ... again, it prompted to install it, hit "y", and I was back in business... " |
it isn't working for me, please help nothing is working for me |
@1-pro: Can you share more details on the error messages you got?
|
==================================
|
I've tried all of these. My message keeps saying I'm using 4.0.1 but need 4.0.2 and to uninstall globally. When I uninstall globally, it says a message like "up to date in " and the message still pops up when I run npx create-react-app. |
It may sound really dumb, but try running your terminal with admin privileges |
Hey guys, I think it's unanimous the uninstall and reinstalling create-react-app works like a charm. It certainly Happy coding |
I have had this issue on I resolved it by following the steps here: Adding here in case it helps someone. |
Try this |
Thanks for sharing!!!! |
This is the cleanest solution that worked for me, thanks @gurjeetsinghvirdee |
If npx create-react-app is not working then do this npm uninstall -g create-react-app |
This finally worked for me |
I'll add that |
npm ERR! code ERR_SOCKET_TIMEOUT npm ERR! A complete log of this run can be found in: Can you help me? |
or it show me that npm ERR! code ECONNRESET npm ERR! A complete log of this run can be found in: |
|
just don't use npx for |
hi, i have try everything here, but nothing work for me :( i have a vps running with debian 11, any idea? |
maybe the network |
I have tried these all method but could not working, any other solution for it |
Use a different network: For example, you can try connecting to a different Wi-Fi network or using a mobile hotspot. Hope this should help you.This Works For me. |
try and then npx create-react-app your-app |
yessss yesssss yesssssss yahhhoooooooo!!!!!! its working thanks you soooo much for savingggggg im so exited got emotionallll |
Also worked for me then |
Best Solution, work for me, try this one. |
i love u <3 |
I had a similar issue too.
This solution resolves my issue too.. Thank you for sharing ❤ |
Thanks worked for me too |
try npm create-react-app my-app |
This outputted Unknown command: "create-react-app" |
the first step is to locate your project folder then run these commands one by one
then
then
then
here what we are doing is uninstalling react19 and installing react18. or you can go with this YouTube link: https://youtu.be/mUlfo5ptm1o?si=hYHTwc7hApEXzPX5 |
$ npx create-react-app my-app
You are running
create-react-app
4.0.0, which is behind the latest release (4.0.1).We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/
npm ERR! code 1
npm ERR! path C:\Users\User\Desktop
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-react-app my-app
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2020-11-23T18_27_48_723Z-debug.log
The text was updated successfully, but these errors were encountered: