To add to @T3sss' post, sometimes macOS will just download a stub installer instead of the full macOS installer. Plus sometimes when this happens, even if the full macOS installer is downloaded, the installer will be broken in two and stored at two different locations (who knows why). Check to make sure you have the full macOS installer in the Applications folder. Usually it should be about 6GB in size. If you don't have the full installer in the Applications folder, then the "createinstallmedia" utility won't be there either. Trying to get macOS to download the full installer to the Applications folder when this happens can be difficult and usually will result in needing to use the command line.