npx creates app with yarn not npm code example
Example 1: Create React App command
npx create-react-app hello-world
cd hello-world && npm start
Example 2: create-react-app use npm
create-react-app my-project --use-npm
npx create-react-app hello-world
cd hello-world && npm start
create-react-app my-project --use-npm