Question: macOS could not be installed on your computer
"an error as occurred installing macOS. To use Apple Diagnostics to check your Mac hardware, shutdown, press the power button, and immediately hold 'D' key until diagnostics begins. Quit the installer to restart your computer and try again."
This is the message I get when attempting a clean install of High Sierra from the bootable USB drive. I have formatted the HD and started clean install. It loads up, screen flashes black, and start installing. At "11 minutes remaining" error message appears.
I tried holding 'D' key, but it always went to Internet recovery.
Note, that I had a clean Sierra install on the computer (I was unable to download full High Sierra image otherwise) and all worked well using the same procedure: format HD, install.
One thing that might be important: It is not clear to me if I should repartition the disk using the disk utility ... if so, steps to do that in High Sierra would be appreciated.
Computer: late 2012 Mac Book Air, 256GB SSD drive, and 8GB memory (both standard). Hardware requitrments seems same as for Sierra which worked fine.
Edit: After I restart the computer after the error message holding "opt" key I still see my "Install macOS High Sierra" USB and "mac OS installer" (later had internal HD icon).
MacBook Air, macOS High Sierra (10.13.2), Does not install / troubleshooting