[pkg-php-pear] Bug#955485: Composer not working
Carlos R. Pasqualini
carlos at carlospasqualini.com.ar
Sun Apr 25 13:27:24 BST 2021
Dear Maintainer et all
I've been hit by this issue, after setup composer from zero a few days
ago, right now it doesn't even work without parameters:
~: composer
In BaseIO.php line 128:
Your github oauth token for github.com contains invalid characters:
"ghp_AAAAAAAAAAAAAAAAAAAAAAA"
I made the workaround of switching from oauth to HTTP Basic Auth in
the file: ~/.config/composer/auth.json
"http-basic": {
"github.com": {
"username": "[YOUR-GITHUB-USERNAME]",
"password": "ghp_[YOUR-PERSONAL-TOKEN]"
}
}
I found this workaround in:
https://stackoverflow.com/questions/26691681/composer-unexpectedvalueexception-error-will-trying-to-use-composer-to-install
Thanks!
More information about the pkg-php-pear
mailing list