Instantly share code, notes, and snippets.

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

This comment has been minimized.

Show comment
Hide comment
@ramiasg

ramiasg commented Jan 27, 2018

thanks

@js2me

This comment has been minimized.

Show comment
Hide comment
@js2me

js2me Feb 1, 2018

thank you

js2me commented Feb 1, 2018

thank you

@SaurabhGarg1

This comment has been minimized.

Show comment
Hide comment
@SaurabhGarg1

SaurabhGarg1 Feb 3, 2018

thanks. That helps

SaurabhGarg1 commented Feb 3, 2018

thanks. That helps

@bendonlang

This comment has been minimized.

Show comment
Hide comment
@bendonlang

bendonlang commented Feb 3, 2018

Thanks

@yxuchen

This comment has been minimized.

Show comment
Hide comment
@yxuchen

yxuchen Feb 7, 2018

well done

yxuchen commented Feb 7, 2018

well done

@shereej

This comment has been minimized.

Show comment
Hide comment
@shereej

shereej Feb 9, 2018

thank you

shereej commented Feb 9, 2018

thank you

@eladonline

This comment has been minimized.

Show comment
Hide comment
@eladonline

eladonline Feb 27, 2018

thank you !

eladonline commented Feb 27, 2018

thank you !

@elcordova

This comment has been minimized.

Show comment
Hide comment
@elcordova

elcordova commented Feb 28, 2018

gracias

@PetKatt

This comment has been minimized.

Show comment
Hide comment
@PetKatt

PetKatt Mar 1, 2018

Gracia Plenna!

PetKatt commented Mar 1, 2018

Gracia Plenna!

@muchamateusz

This comment has been minimized.

Show comment
Hide comment
@muchamateusz

muchamateusz Mar 8, 2018

I did everything as it says to do and after successful installing create-react-app i still can't use create-react-app apps-name.
I have no idea why :/

muchamateusz commented Mar 8, 2018

I did everything as it says to do and after successful installing create-react-app i still can't use create-react-app apps-name.
I have no idea why :/

@msaldana45

This comment has been minimized.

Show comment
Hide comment
@msaldana45

msaldana45 commented Mar 10, 2018

bless.

@nyanjongandrew

This comment has been minimized.

Show comment
Hide comment
@nyanjongandrew

nyanjongandrew commented Mar 16, 2018

Thanks

@ms-vague

This comment has been minimized.

Show comment
Hide comment
@ms-vague

ms-vague Mar 19, 2018

Thank you.

ms-vague commented Mar 19, 2018

Thank you.

@TylerSustare

This comment has been minimized.

Show comment
Hide comment
@TylerSustare

TylerSustare Mar 26, 2018

Tanks braddah

TylerSustare commented Mar 26, 2018

Tanks braddah

@kube23

This comment has been minimized.

Show comment
Hide comment
@kube23

kube23 Mar 27, 2018

@muchamateusz reinstalling node fixed that for me

kube23 commented Mar 27, 2018

@muchamateusz reinstalling node fixed that for me

@kyle-poretto

This comment has been minimized.

Show comment
Hide comment
@kyle-poretto

kyle-poretto Apr 7, 2018

yeah this is helpful. Awesome!

kyle-poretto commented Apr 7, 2018

yeah this is helpful. Awesome!

@ezrqnkemboi

This comment has been minimized.

Show comment
Hide comment
@ezrqnkemboi

ezrqnkemboi Apr 16, 2018

Thanks so much. This has been helpful.

ezrqnkemboi commented Apr 16, 2018

Thanks so much. This has been helpful.

@Narvey

This comment has been minimized.

Show comment
Hide comment
@Narvey

Narvey Apr 18, 2018

why was this created as a secret gist?

Narvey commented Apr 18, 2018

why was this created as a secret gist?

@princecharming519

This comment has been minimized.

Show comment
Hide comment
@princecharming519

princecharming519 May 25, 2018

Well done, but I want to know about npx in detail.
Hope to see you soon.
Thx.

princecharming519 commented May 25, 2018

Well done, but I want to know about npx in detail.
Hope to see you soon.
Thx.

@Suil3File

This comment has been minimized.

Show comment
Hide comment
@Suil3File

Suil3File commented May 28, 2018

Nice

@gautam-patadiya

This comment has been minimized.

Show comment
Hide comment
@gautam-patadiya

gautam-patadiya commented Jun 7, 2018

Thanks!

@rymo90

This comment has been minimized.

Show comment
Hide comment
@rymo90

rymo90 Jun 9, 2018

thanks !

rymo90 commented Jun 9, 2018

thanks !

@sulemankhan447

This comment has been minimized.

Show comment
Hide comment
@sulemankhan447

sulemankhan447 Jun 10, 2018

screenshot 730
why it doesnt create this react folder in desktop instead it creates to some another folder

sulemankhan447 commented Jun 10, 2018

screenshot 730
why it doesnt create this react folder in desktop instead it creates to some another folder

@moinadnan-vteams

This comment has been minimized.

Show comment
Hide comment
@moinadnan-vteams

moinadnan-vteams commented Jun 26, 2018

Appreciated :)

@Iwi4a

This comment has been minimized.

Show comment
Hide comment
@Iwi4a

Iwi4a Jul 12, 2018

Мерси!

Iwi4a commented Jul 12, 2018

Мерси!

@ClarkLusm

This comment has been minimized.

Show comment
Hide comment
@ClarkLusm

ClarkLusm commented Jul 17, 2018

Thanks!!!

@arduino731

This comment has been minimized.

Show comment
Hide comment
@arduino731

arduino731 Jul 22, 2018

no wonder thanks

arduino731 commented Jul 22, 2018

no wonder thanks

@molochnyk

This comment has been minimized.

Show comment
Hide comment
@molochnyk

molochnyk Jul 27, 2018

wow, Thanks )

molochnyk commented Jul 27, 2018

wow, Thanks )

@yang29

This comment has been minimized.

Show comment
Hide comment
@yang29

yang29 Jul 28, 2018

Good stuff

yang29 commented Jul 28, 2018

Good stuff

@abodesigner

This comment has been minimized.

Show comment
Hide comment
@abodesigner

abodesigner Jul 28, 2018

Everything works well, thanks

abodesigner commented Jul 28, 2018

Everything works well, thanks

@maitienhiep

This comment has been minimized.

Show comment
Hide comment
@maitienhiep

maitienhiep commented Aug 2, 2018

Thanks :)

@Sokcho05

This comment has been minimized.

Show comment
Hide comment
@Sokcho05

Sokcho05 Sep 4, 2018

it just says npm is not recognized as an internal or external command, operable program, or batch file

Sokcho05 commented Sep 4, 2018

it just says npm is not recognized as an internal or external command, operable program, or batch file

@ianchanning

This comment has been minimized.

Show comment
Hide comment
@ianchanning

ianchanning Sep 7, 2018

Note that by default npm install -g will install to /usr/local/bin which requires sudo access. See the npm docs on installing packages globally for more info.

Also as per the npm trouble shooting guide:

(You may need to prefix these commands with sudo, especially on Linux, or OS X if you installed Node using its default installer.)

ianchanning commented Sep 7, 2018

Note that by default npm install -g will install to /usr/local/bin which requires sudo access. See the npm docs on installing packages globally for more info.

Also as per the npm trouble shooting guide:

(You may need to prefix these commands with sudo, especially on Linux, or OS X if you installed Node using its default installer.)

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