Closed speedplane closed 6 years ago
I do not have a fix for this issue (obviously an error like this shouldn't occur), but as a workaround you can try logging out and back in:
>gh user -L
>gh user -l
Running the second command, you will be asked for your Github username and password.
This also has the nice side effect of creating a default .gh.json
configuration file.
@speedplane Thanks for your patience and for bringing this to our attention :smile:
Just released a new version that should fix at least this portion of the error message:
DEBUG: ENOENT: no such file or directory, open 'C:\Users\mes65\[REDACTED]\.gh.json'
If it doesn't fix this error we will have to do some further debugging:
TypeError: Cannot read property 'login' of undefined
Could you try this new version 1.12.10
and let me know if this fixes your issue? Thanks!
After further investigation, this is actually the intended functionality and not a bug so I reverted the changes.
If we do not find the file we return the global config.
--verbose
is more for internal debugging
Was there a reason you need to use the --verbose
flag?
Closing for now unless you need some info provided by verbose
that you can't otherwise get.
I just installed
gh
and I immediately got the following error:Login info:
Version info:
I tried uninstaling and reinstalling with
npm uninstall -g gh && npm install -g gh
but no luck, same error message.