0

"npx create-react-app my-app" This command create a react application with the NPM package manager by default.

AND

"npx create-react-app my-app --use-yarn" This command does also the same as the above command.

What to do if we want yarn as default when I run the npx command?

Please help me out...

I try both the command which I mentioned in the problem statement.

1 Answers1

0

From the documentation

yarn create react-app my-app
Konrad
  • 21,590
  • 4
  • 28
  • 64
  • when I go to this site "https://github.com/facebook/create-react-app" it is showing that this "npx create-react-app my-app" command install yarn but it is not in window. – Pankaj Shah Nov 06 '22 at 05:18
  • how can i use same command to install yarn – Pankaj Shah Nov 06 '22 at 05:19
  • According to [this](https://create-react-app.dev/docs/getting-started/#selecting-a-package-manager) the gif is wrong – Konrad Nov 06 '22 at 08:27