1. Press and hold ALT key all the time to start the machine to enter the selective recovery, or press and hold Command+R key to enter the macOS utility.
2. Select Reinstall mac to continue to the next step.
3. Enter the next option and wait for the system to be installed.