I used the simplest and the dumbest command
npx create-react-app mia-app
cd mia-app
npm start
But after created the project everytime there are no serviceWorker. Can someone help me?

However, I've tried with npm create-create-app with this res.

serviceWorker.js is no longer included in the base template, as of create-react-app version 4.0.something.
Trawling through the create-react-app GitHub issues, two main workarounds keep popping up:
npx create-react-app my-app --template cra-template-pwa
or for Typescript:
npx create-react-app my-app --template cra-template-pwa-typescript
(where my-app is replaced by the name of your app)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With