Make sure your default web browser is set to Safari and that there are no macOS installer apps anywhere on your internal and mounted external drives.Thank you but this does not work for me it just takes me to the app store home screen. Also if I search on the app store for Mojave it does not come up.