FOR UBUNTU: in case you are having an error that a template is not provided with npx create-react-app
and already unistalled npm create-react-app -g
and still doesn't work, do the following:
sudo rm -rf usr/bin/create-react-app
# this will manualy remove the create-react-app.
npx create-react-app
either with typescript works too.