create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

create-react-app tutorial from reactjs.org differs than cmd line options

Open ColtonIdle opened this issue 6 years ago • 2 comments

New to react following: https://reactjs.org/docs/create-a-new-react-app.html

It says to do:

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

Yet, when running npx create-react-app my-app I get an output that says:

We suggest that you begin by typing:

cd my-app yarn start

Can this be updated in the docs or in create-react-app to prevent confusion (especially for someone new) this difference is really daunting.

ColtonIdle avatar May 07 '20 03:05 ColtonIdle

This behavior because user has installed yarn. If user hasn’t yarn, cra will use npm by default and this command will work. I think better just will write about it.

kovyazin avatar May 07 '20 07:05 kovyazin

Interesting. I guess I will uninstall yarn. Don't recall installing it personally. Might have been a long time ago.

ColtonIdle avatar May 07 '20 15:05 ColtonIdle