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.

ramiasg commented Jan 27, 2018

thanks

@js2me

This comment has been minimized.

js2me commented Feb 1, 2018

thank you

@SaurabhGarg1

This comment has been minimized.

SaurabhGarg1 commented Feb 3, 2018

thanks. That helps

@bendonlang

This comment has been minimized.

bendonlang commented Feb 3, 2018

Thanks

@yxuchen

This comment has been minimized.

yxuchen commented Feb 7, 2018

well done

@shereej

This comment has been minimized.

shereej commented Feb 9, 2018

thank you

@eladonline

This comment has been minimized.

eladonline commented Feb 27, 2018

thank you !

@elcordova

This comment has been minimized.

elcordova commented Feb 28, 2018

gracias

@PetKatt

This comment has been minimized.

PetKatt commented Mar 1, 2018

Gracia Plenna!

@muchamateusz

This comment has been minimized.

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.

msaldana45 commented Mar 10, 2018

bless.

@nyanjongandrew

This comment has been minimized.

nyanjongandrew commented Mar 16, 2018

Thanks

@ms-vague

This comment has been minimized.

ms-vague commented Mar 19, 2018

Thank you.

@TylerSustare

This comment has been minimized.

TylerSustare commented Mar 26, 2018

Tanks braddah

@kube23

This comment has been minimized.

kube23 commented Mar 27, 2018

@muchamateusz reinstalling node fixed that for me

@kyle-poretto

This comment has been minimized.

kyle-poretto commented Apr 7, 2018

yeah this is helpful. Awesome!

@ezrqnkemboi

This comment has been minimized.

ezrqnkemboi commented Apr 16, 2018

Thanks so much. This has been helpful.

@Narvey

This comment has been minimized.

Narvey commented Apr 18, 2018

why was this created as a secret gist?

@princecharming519

This comment has been minimized.

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.

Suil3File commented May 28, 2018

Nice

@gautam-patadiya

This comment has been minimized.

gautam-patadiya commented Jun 7, 2018

Thanks!

@rymo90

This comment has been minimized.

rymo90 commented Jun 9, 2018

thanks !

@sulemankhan447

This comment has been minimized.

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.

moinadnan-vteams commented Jun 26, 2018

Appreciated :)

@Iwi4a

This comment has been minimized.

Iwi4a commented Jul 12, 2018

Мерси!

@ClarkLusm

This comment has been minimized.

ClarkLusm commented Jul 17, 2018

Thanks!!!

@arduino731

This comment has been minimized.

arduino731 commented Jul 22, 2018

no wonder thanks

@molochnyk

This comment has been minimized.

molochnyk commented Jul 27, 2018

wow, Thanks )

@yang29

This comment has been minimized.

yang29 commented Jul 28, 2018

Good stuff

@abodesigner

This comment has been minimized.

abodesigner commented Jul 28, 2018

Everything works well, thanks

@maitienhiep

This comment has been minimized.

maitienhiep commented Aug 2, 2018

Thanks :)

@Sokcho05

This comment has been minimized.

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.

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.)

@FacuFigo

This comment has been minimized.

FacuFigo commented Sep 26, 2018

Thanks!

@T0nyKo

This comment has been minimized.

T0nyKo commented Oct 2, 2018

@muchamateusz reinstalling node fixed that for me

Kube23.....You sir, are a genius. Uninstalling then installing Node.js allowed npx to work properly for me. https://treehouse.github.io/installation-guides/windows/node-windows.html

@paulTchaa8

This comment has been minimized.

paulTchaa8 commented Oct 13, 2018

Hey guy, Thanks a lot. It worked! Now how to parse a markdown code to an html? I've used the new Remarkable() object, then called the render method with no success. It's said on the http:localhost:3000 page Remarkable is not derfined. What to do please?

const md = new Remarkable();
...
<div id="preview" className="previewer" dangerouslySetInnerHTML = {{__html: md.render(this.state.markdown)}}/>
@yozhsh

This comment has been minimized.

yozhsh commented Oct 25, 2018

Дякую!

@manishn19

This comment has been minimized.

manishn19 commented Nov 12, 2018

Thanks it works :)

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