When I run:
sfdx force:package:installed:list -u DevHub
(where DevHub is the alias of my production org, which IS enabled as Dev Hub and also has 2GP enabled)
I receive this error:
ERROR running force:package:installed:list: sObject type 'InstalledSubscriberPackage' is not supported. Try this: Packaging is not enabled on this org. Verify that you are authenticated to the desired org and try again. Otherwise, contact Salesforce Customer Support for more information.
This command works on sandboxes, scratch orgs, and a 30-day trial devhub org, but not our current production org.
The goal is to get the packageVersionIds of the packages installed in our org and also to understand how the metadata of the packaging system works within the context of the DevHub.