Skip to content

Instantly share code, notes, and snippets.

@gaearon
Created January 8, 2018 17:02
Star You must be signed in to star a gist
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
@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?

@Sade28
Copy link

Sade28 commented Jun 10, 2023

image
image
Sir i am trying to get react app but getting this error. kindly help me.

@bulutuu
Copy link

bulutuu commented Jul 22, 2023

npx create-react-app my-app cd my-app npm start

@Vandena2
Copy link

Vandena2 commented Aug 4, 2023

### I am getting this error:

up to date, audited 76 packages in 2s

2 packages are looking for funding
run npm fund for details

3 high severity vulnerabilities

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.

@Kumar96487
Copy link

please help me sir
Uploading WhatsApp Image 2023-09-10 at 13.19.07.jpg…

@Kumar96487
Copy link

img
please hele me sir

@MALIKSHAHID786
Copy link

Thanks a lot for this post, Its help

Hi

@Kumar96487
Copy link

hii

@sushmita12345
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

It works for me. Thanks😇

@Naffy-Kausar
Copy link

Try this one if your npm is 6+
npm init react-app my-app
npm init is available in npm 6+
The problems listed above aren't all that serious. This is taking place as a result of an upgrade to the react version.

@jamessv
Copy link

jamessv commented Oct 18, 2023

Try this code

npm init react-app my-app or npm create-react-app my-app
cd my-app
npm start

@AminuAs7
Copy link

Gteat

@WisdomNnam
Copy link

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

``

__

@jamessv
Copy link

jamessv commented Nov 5, 2023

Please use this code
npm create-react-app my-app
cd my-app
npm start

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