Always back up your existing system before performing a clean macOS installation:
Press . You will be prompted to type your Mac's administrator password (no characters will show as you type; this is normal).
Do you need help or troubleshooting Terminal errors ?