Running on a poweshell with admin privileges yields the same error.
If i delete that state.json file before running the command on powershell I get the Invalid username/password error the first time I run it, then EPERM if I try to run it again.
Edit:
I realized I wasn’t on the latest nodejs LTS version. Now I am but the Invalid username/password error persists on both git bash and powershell. I’m not getting the EPERM error anymore.
The EPERM error would be either because you ran an expo command as an admin user and that created files that your normal user doesn’t have access to, or because something else (e.g. antivirus software) has one or more of the files open at the time.
Does it work if you use expo login without specifying the username and password on the command line? It should prompt for them.
I’m not sure why you might have had problems with git bash, but one thing to bear in mind when you use the -u and -p options on the command line is that you might need to be careful with the quoting.
e.g. if you use cmd.exe (not sure about PowerShell) you should probably use double quotes. In bash you should probably use single quotes. Double quotes might work too, but if you have something like $x somewhere in your password then bash will try to substitute an environment variable called x. If you use single quotes then it will not substitute anything.