Skip to content

Instantly share code, notes, and snippets.

@gaearon
Created January 8, 2018 17:02
Embed
What would you like to do?
Creating a new project with npm <= 5.2

If you use npm 5.1 or earlier, you can't use npx. Instead, install create-react-app globally:

npm install -g create-react-app

Now you can run:

create-react-app my-app
@andersondcribeiro
Copy link

Thanks @gaearon!

@LuckyMan5110
Copy link

Thanks!

@BRIJESHJENA
Copy link

You are running create-react-app` 4.0.3, which is behind the latest release (5.0.1).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:

  • npm uninstall -g create-react-app
  • yarn global remove create-react-app
    `

@peppe804
Copy link

Thanks a lot for this post, Its help

@SubairMohamed
Copy link

thankz pro!

@Looklili
Copy link

Looklili commented Oct 3, 2022

not working with this command please guide me
npm install -g create-react-app
create-react-app my-app
Screenshot (41)

``

@angv2852
Copy link

angv2852 commented Oct 4, 2022

Help!! I have been trying to install it, as suggested and get this message:

image

I have looked up instructions as mentioned and it just takes me to the original page with same instructions. Why isn't it working??

image

Any help is much appreciated!

@angv2852
Copy link

angv2852 commented Oct 5, 2022

Help!! I have been trying to install it, as suggested and get this message:

image

I have looked up instructions as mentioned and it just takes me to the original page with same instructions. Why isn't it working??

image

Any help is much appreciated!

I solved my own issue. I was able to find help here https://lightrun.com/answers/facebook-create-react-app-create-react-app-stuck-on-v403-cannot-create-a-new-app and fixed by running command: npx create-react-app@5.0.1 app-name

I'll leave this here in case this can help anyone else with the same issue.

@bosunssirius
Copy link

Thanks @angv2852 That helps!

@kadheryna
Copy link

For everybody who had or may have a problem with installation, here is one example of a solution
https://stackoverflow.com/questions/70358474/error-while-creating-new-react-app-you-are-running-create-react-app-4-0-3-w

@Musti331
Copy link

tepki uygulamasını yükledikten sonra da bu sorunla karşılaşıyorum

olaylar.js:292 fırlatma er; // İşlenmeyen 'hata' olayı ^

] } npm HATA! kod ELIFECYCLE npm HATA! hata 1 npm HATA! my-app@0.1.0 başlangıç: react-scripts start npm HATA! Çıkış durumu 1 npm ERR! npm HATA! my-app@0.1.0 başlangıç ​​komut dosyasında başarısız oldu. npm HATA! Bu muhtemelen npm ile ilgili bir sorun değildir. Yukarıda muhtemelen ek günlük kaydı çıktısı vardır

npm HATA! Bu çalıştırmanın tam bir günlüğü şurada bulunabilir: npm ERR! C:\Users\Arif\AppData\Roaming\npm-cache_logs\2020-07-06T04_51_26_637Z-debug.log Not C:\Users\Arif\my-app>

@askchidi
Copy link

@rimjhim07 Thank you so much!!! it worked for me

@alireza97d
Copy link

Thank you :)

@blocklee
Copy link

image

@michalosMiko
Copy link

  1. npm install create-react-app

thanks

@H1365
Copy link

H1365 commented Dec 18, 2022

Yes

@frijolitox
Copy link

Hi
I use the latest version of node, npm, npx.....
Before install, i use: npm uninstall -g create-react-app and after i use npx create-react-app my-app, and this is the result:
kkkkk
Can you help me please
Thank you

@Jay200009
Copy link

👍

@Jay200009
Copy link

Nice 🙂

@Jay200009
Copy link

Thanks

@Ali-MU-1990
Copy link

Hello dears,
I am facing a problem to install it, please check the following screenshot and guide me how to fix those issues.

image

@Junior620
Copy link

Capture d'écran 2023-06-05 121917
how to fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment