[SalesForce] No AuthInfo found for name always

Is there a way to full reinstall sfdx? How to delete settings?

I am creating an sfdx project, auth in org and with retrieve command i am getting No AuthInfo found for name with name of another org user. All scratches deleted, delfaut user deleted. So to use any command i need specify the user manually. How can i remove that?

I have used " sfdx force:alias:set " with no username and now just No AuthInfo found for name for undefined

What can i do? I can use most commad with -u username, but i cennot create package: it gives error Invalid character in header content ["getApiVersion"]

Best Answer

So I had the same issue these days and the only step I did to pass through is activating an option called Enable Unlocked Packages and Second-Generation Managed Packages inside the Dev Hub settings.