Reason: You used npm to create, just replace it with npx to create
npx create-react-app my-app-ts --template typescript