D
D
Dmytro Karpovych2015-10-08 01:01:41
PHP
Dmytro Karpovych, 2015-10-08 01:01:41

Why is composer constantly "asking" for a token for github?

Good day.
Every time I run composer update I get the following message:

Your GitHub credentials are required to fetch private repository metadata (git://github.com/DmitryBaranovskiy/eve.git)
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+F1-laptop+2015-10-08+0043
to retrieve a token. It will be stored in "/home/USER/.composer/auth.json" for future use by Composer.
Token (hidden):

I constantly enter the token, although it is already in the file:
{
    "github-oauth": {
        "github.com": "0000000000000000000000000000000"
    }
}

Please tell me what to do so as not to copy-paste it constantly.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kubintsev, 2015-10-08
@akubintsev

GitHub doesn't like pulling repositories frequently. There is a solution: use the local cache using the --prefer-dist key.
Or add the token to the config with the command:
https://getcomposer.org/doc/articles/troubleshooti...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question