Skip to content

Instantly share code, notes, and snippets.

Created January 8, 2018 17:02
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
Copy link

angv2852 commented Oct 5, 2022

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


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


Any help is much appreciated!

I solved my own issue. I was able to find help here 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.

Copy link

Thanks @angv2852 That helps!

Copy link

For everybody who had or may have a problem with installation, here is one example of a solution

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>

Copy link

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

Copy link

Thank you :)

Copy link


Copy link

  1. npm install create-react-app


Copy link

H1365 commented Dec 18, 2022


Copy link

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:
Can you help me please
Thank you

Copy link


Copy link

Nice 🙂

Copy link


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.


Copy link

For those who have an error when using the command
'npm install -g create-react-app'
follow these steps
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo n latest
with that they update npm
and if you have problems with the node version
n 10.16.0
n lts
$ n
node / 4.9.1
ο node / 8.11.3
node / 10.15.0
Use up / down arrow keys to select a version, return key to install, d to delete, q to quit

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