npx create-react-app app-name //With npx, the CLI uses npm to install dependencies
npm init react-app app-name // With npm, the CLI also uses npm to install dependencies
yarn create react-app app-name // With yarn, the CLI uses yarn to install dependencies
to override yarn
npx create-react-app my-app --use-npm