A template was not provided after running npx create-react-app
Use npx --ignore-existing create-react-app <app name>
Its showing Please specify the project directory
Did you try specifying the project directory...
npx --ignore-existing create-react-app my-project-directory
There's also an approach where you can uninstall the global package using npm uninstall -g create-react-app.
But if that doesn't get rid of the error, you can try:
which create-react-app, and if this shows: /usr/local/bin/create-react-app you can try rm -rf /usr/local/bin/create-react-app.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Most helpful comment
Use
npx --ignore-existing create-react-app <app name>