Per my understanding for using Scratch Orgs, you have to have a DevHub registered.
When you have to install an Unlocked Package in the Production Org that is registered as DevHub, do you have to unregister the Org as DevHub and registered as a normal Org or you can install the unlocked package using the DevHub Alias?
sfdx force:package:install -u DevHub --wait 10 --package [email protected] -k test1234 --noprompt
I am working in the Salesforce trailhead Quick Start: Unlocked Packages