npx --ignore-existing create-react-app
if react is installed globally, run this: npm uninstall -g create-react-app then run this: npx create-react-app {directory name}