Authentication required (packagist.org) Laravel installation



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








5















I'm using Ubuntu 16.04 and trying to install Laravel (any version). Actually I cloned from GitHub the Laravel project (https://github.com/laravel/laravel) After cloning I'm running the command as below:





root:/var/www/html/laravel$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Authentication required (packagist.org):
Username:


This is the issue I'm facing, I don't know what username I have to give, and why its asking authentication.. And if I run composer diagnose I get this output:



composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: Authentication required (packagist.org):
Username:


Any suggestions or can anyone tell what was I'm missing here?










share|improve this question
























  • Are you behind a proxy of some kind ? Did you try composer install -vvv to get more debug ?

    – Thibault
    Sep 30 '16 at 7:58











  • please refer this link http://stackoverflow.com/questions/21630806/composer-install-laravel-asks-for-authentication-for-github

    – anuraj
    Sep 30 '16 at 7:58











  • Thank you for replying, i run the command composer install -vvv but in the middle i got the below shown error [ComposerDownloaderTransportException] Invalid credentials for 'http://packagist.org/p/symfony/polyfill-mbstring%24c9c4d394bcfc0f197c6dd5c0524fa35a32f2dd07a0c9d208d04811248115b0 e6.json', aborting. dont know what to do now... any other suggestions

    – Gayatri
    Sep 30 '16 at 9:23


















5















I'm using Ubuntu 16.04 and trying to install Laravel (any version). Actually I cloned from GitHub the Laravel project (https://github.com/laravel/laravel) After cloning I'm running the command as below:





root:/var/www/html/laravel$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Authentication required (packagist.org):
Username:


This is the issue I'm facing, I don't know what username I have to give, and why its asking authentication.. And if I run composer diagnose I get this output:



composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: Authentication required (packagist.org):
Username:


Any suggestions or can anyone tell what was I'm missing here?










share|improve this question
























  • Are you behind a proxy of some kind ? Did you try composer install -vvv to get more debug ?

    – Thibault
    Sep 30 '16 at 7:58











  • please refer this link http://stackoverflow.com/questions/21630806/composer-install-laravel-asks-for-authentication-for-github

    – anuraj
    Sep 30 '16 at 7:58











  • Thank you for replying, i run the command composer install -vvv but in the middle i got the below shown error [ComposerDownloaderTransportException] Invalid credentials for 'http://packagist.org/p/symfony/polyfill-mbstring%24c9c4d394bcfc0f197c6dd5c0524fa35a32f2dd07a0c9d208d04811248115b0 e6.json', aborting. dont know what to do now... any other suggestions

    – Gayatri
    Sep 30 '16 at 9:23














5












5








5








I'm using Ubuntu 16.04 and trying to install Laravel (any version). Actually I cloned from GitHub the Laravel project (https://github.com/laravel/laravel) After cloning I'm running the command as below:





root:/var/www/html/laravel$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Authentication required (packagist.org):
Username:


This is the issue I'm facing, I don't know what username I have to give, and why its asking authentication.. And if I run composer diagnose I get this output:



composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: Authentication required (packagist.org):
Username:


Any suggestions or can anyone tell what was I'm missing here?










share|improve this question
















I'm using Ubuntu 16.04 and trying to install Laravel (any version). Actually I cloned from GitHub the Laravel project (https://github.com/laravel/laravel) After cloning I'm running the command as below:





root:/var/www/html/laravel$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Authentication required (packagist.org):
Username:


This is the issue I'm facing, I don't know what username I have to give, and why its asking authentication.. And if I run composer diagnose I get this output:



composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: Authentication required (packagist.org):
Username:


Any suggestions or can anyone tell what was I'm missing here?







php laravel-5 composer-php






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 30 '16 at 20:49









Scott Weldon

5,49552749




5,49552749










asked Sep 30 '16 at 7:51









GayatriGayatri

96128




96128












  • Are you behind a proxy of some kind ? Did you try composer install -vvv to get more debug ?

    – Thibault
    Sep 30 '16 at 7:58











  • please refer this link http://stackoverflow.com/questions/21630806/composer-install-laravel-asks-for-authentication-for-github

    – anuraj
    Sep 30 '16 at 7:58











  • Thank you for replying, i run the command composer install -vvv but in the middle i got the below shown error [ComposerDownloaderTransportException] Invalid credentials for 'http://packagist.org/p/symfony/polyfill-mbstring%24c9c4d394bcfc0f197c6dd5c0524fa35a32f2dd07a0c9d208d04811248115b0 e6.json', aborting. dont know what to do now... any other suggestions

    – Gayatri
    Sep 30 '16 at 9:23


















  • Are you behind a proxy of some kind ? Did you try composer install -vvv to get more debug ?

    – Thibault
    Sep 30 '16 at 7:58











  • please refer this link http://stackoverflow.com/questions/21630806/composer-install-laravel-asks-for-authentication-for-github

    – anuraj
    Sep 30 '16 at 7:58











  • Thank you for replying, i run the command composer install -vvv but in the middle i got the below shown error [ComposerDownloaderTransportException] Invalid credentials for 'http://packagist.org/p/symfony/polyfill-mbstring%24c9c4d394bcfc0f197c6dd5c0524fa35a32f2dd07a0c9d208d04811248115b0 e6.json', aborting. dont know what to do now... any other suggestions

    – Gayatri
    Sep 30 '16 at 9:23

















Are you behind a proxy of some kind ? Did you try composer install -vvv to get more debug ?

– Thibault
Sep 30 '16 at 7:58





Are you behind a proxy of some kind ? Did you try composer install -vvv to get more debug ?

– Thibault
Sep 30 '16 at 7:58













please refer this link http://stackoverflow.com/questions/21630806/composer-install-laravel-asks-for-authentication-for-github

– anuraj
Sep 30 '16 at 7:58





please refer this link http://stackoverflow.com/questions/21630806/composer-install-laravel-asks-for-authentication-for-github

– anuraj
Sep 30 '16 at 7:58













Thank you for replying, i run the command composer install -vvv but in the middle i got the below shown error [ComposerDownloaderTransportException] Invalid credentials for 'http://packagist.org/p/symfony/polyfill-mbstring%24c9c4d394bcfc0f197c6dd5c0524fa35a32f2dd07a0c9d208d04811248115b0 e6.json', aborting. dont know what to do now... any other suggestions

– Gayatri
Sep 30 '16 at 9:23






Thank you for replying, i run the command composer install -vvv but in the middle i got the below shown error [ComposerDownloaderTransportException] Invalid credentials for 'http://packagist.org/p/symfony/polyfill-mbstring%24c9c4d394bcfc0f197c6dd5c0524fa35a32f2dd07a0c9d208d04811248115b0 e6.json', aborting. dont know what to do now... any other suggestions

– Gayatri
Sep 30 '16 at 9:23













2 Answers
2






active

oldest

votes


















7














run "composer config --global repo.packagist composer https://packagist.org" and then try again. This should prevent it from using http protocol and force https which might fix it in case you have a bad proxy in the way.






share|improve this answer























  • You're a genius! thank you

    – Vladimir Salguero
    Nov 27 '18 at 22:35


















0














In my case, solved the issue as below:



$ composer diagnose

Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
Missing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking composer version: WARNING
You are not running the latest stable version, run `composer self-update` to update (1.6.3 => 1.7.2)
Composer version: 1.6.3
PHP version: 7.2.8
PHP binary path: /usr/local/Cellar/php/7.2.8/bin/php


The I ran



$ composer self-update --update-keys

Open https://composer.github.io/pubkeys.html to find the latest keys
Enter Dev / Snapshot Public Key (including lines with -----):
[copy and paste the dev pub key]

Enter Tags Public Key (including lines with -----):
[copy and paste the tags pub key]


Then again, I ran



$ composer self-update


However, during installing the package, it still shows:



Authentication required (repo.packagist.org):
Username:


After providing my username and password for my packagist.org account and having my credential stored in /Users/xxx/.composer/auth.json, the issue was resolved.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39786363%2fauthentication-required-packagist-org-laravel-installation%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    7














    run "composer config --global repo.packagist composer https://packagist.org" and then try again. This should prevent it from using http protocol and force https which might fix it in case you have a bad proxy in the way.






    share|improve this answer























    • You're a genius! thank you

      – Vladimir Salguero
      Nov 27 '18 at 22:35















    7














    run "composer config --global repo.packagist composer https://packagist.org" and then try again. This should prevent it from using http protocol and force https which might fix it in case you have a bad proxy in the way.






    share|improve this answer























    • You're a genius! thank you

      – Vladimir Salguero
      Nov 27 '18 at 22:35













    7












    7








    7







    run "composer config --global repo.packagist composer https://packagist.org" and then try again. This should prevent it from using http protocol and force https which might fix it in case you have a bad proxy in the way.






    share|improve this answer













    run "composer config --global repo.packagist composer https://packagist.org" and then try again. This should prevent it from using http protocol and force https which might fix it in case you have a bad proxy in the way.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Oct 16 '18 at 13:38









    Tausif RautTausif Raut

    15726




    15726












    • You're a genius! thank you

      – Vladimir Salguero
      Nov 27 '18 at 22:35

















    • You're a genius! thank you

      – Vladimir Salguero
      Nov 27 '18 at 22:35
















    You're a genius! thank you

    – Vladimir Salguero
    Nov 27 '18 at 22:35





    You're a genius! thank you

    – Vladimir Salguero
    Nov 27 '18 at 22:35













    0














    In my case, solved the issue as below:



    $ composer diagnose

    Checking composer.json: OK
    Checking platform settings: OK
    Checking git settings: OK
    Checking http connectivity to packagist: OK
    Checking https connectivity to packagist: OK
    Checking github.com rate limit: OK
    Checking disk free space: OK
    Checking pubkeys: FAIL
    Missing pubkey for tags verification
    Missing pubkey for dev verification
    Run composer self-update --update-keys to set them up
    Checking composer version: WARNING
    You are not running the latest stable version, run `composer self-update` to update (1.6.3 => 1.7.2)
    Composer version: 1.6.3
    PHP version: 7.2.8
    PHP binary path: /usr/local/Cellar/php/7.2.8/bin/php


    The I ran



    $ composer self-update --update-keys

    Open https://composer.github.io/pubkeys.html to find the latest keys
    Enter Dev / Snapshot Public Key (including lines with -----):
    [copy and paste the dev pub key]

    Enter Tags Public Key (including lines with -----):
    [copy and paste the tags pub key]


    Then again, I ran



    $ composer self-update


    However, during installing the package, it still shows:



    Authentication required (repo.packagist.org):
    Username:


    After providing my username and password for my packagist.org account and having my credential stored in /Users/xxx/.composer/auth.json, the issue was resolved.






    share|improve this answer



























      0














      In my case, solved the issue as below:



      $ composer diagnose

      Checking composer.json: OK
      Checking platform settings: OK
      Checking git settings: OK
      Checking http connectivity to packagist: OK
      Checking https connectivity to packagist: OK
      Checking github.com rate limit: OK
      Checking disk free space: OK
      Checking pubkeys: FAIL
      Missing pubkey for tags verification
      Missing pubkey for dev verification
      Run composer self-update --update-keys to set them up
      Checking composer version: WARNING
      You are not running the latest stable version, run `composer self-update` to update (1.6.3 => 1.7.2)
      Composer version: 1.6.3
      PHP version: 7.2.8
      PHP binary path: /usr/local/Cellar/php/7.2.8/bin/php


      The I ran



      $ composer self-update --update-keys

      Open https://composer.github.io/pubkeys.html to find the latest keys
      Enter Dev / Snapshot Public Key (including lines with -----):
      [copy and paste the dev pub key]

      Enter Tags Public Key (including lines with -----):
      [copy and paste the tags pub key]


      Then again, I ran



      $ composer self-update


      However, during installing the package, it still shows:



      Authentication required (repo.packagist.org):
      Username:


      After providing my username and password for my packagist.org account and having my credential stored in /Users/xxx/.composer/auth.json, the issue was resolved.






      share|improve this answer

























        0












        0








        0







        In my case, solved the issue as below:



        $ composer diagnose

        Checking composer.json: OK
        Checking platform settings: OK
        Checking git settings: OK
        Checking http connectivity to packagist: OK
        Checking https connectivity to packagist: OK
        Checking github.com rate limit: OK
        Checking disk free space: OK
        Checking pubkeys: FAIL
        Missing pubkey for tags verification
        Missing pubkey for dev verification
        Run composer self-update --update-keys to set them up
        Checking composer version: WARNING
        You are not running the latest stable version, run `composer self-update` to update (1.6.3 => 1.7.2)
        Composer version: 1.6.3
        PHP version: 7.2.8
        PHP binary path: /usr/local/Cellar/php/7.2.8/bin/php


        The I ran



        $ composer self-update --update-keys

        Open https://composer.github.io/pubkeys.html to find the latest keys
        Enter Dev / Snapshot Public Key (including lines with -----):
        [copy and paste the dev pub key]

        Enter Tags Public Key (including lines with -----):
        [copy and paste the tags pub key]


        Then again, I ran



        $ composer self-update


        However, during installing the package, it still shows:



        Authentication required (repo.packagist.org):
        Username:


        After providing my username and password for my packagist.org account and having my credential stored in /Users/xxx/.composer/auth.json, the issue was resolved.






        share|improve this answer













        In my case, solved the issue as below:



        $ composer diagnose

        Checking composer.json: OK
        Checking platform settings: OK
        Checking git settings: OK
        Checking http connectivity to packagist: OK
        Checking https connectivity to packagist: OK
        Checking github.com rate limit: OK
        Checking disk free space: OK
        Checking pubkeys: FAIL
        Missing pubkey for tags verification
        Missing pubkey for dev verification
        Run composer self-update --update-keys to set them up
        Checking composer version: WARNING
        You are not running the latest stable version, run `composer self-update` to update (1.6.3 => 1.7.2)
        Composer version: 1.6.3
        PHP version: 7.2.8
        PHP binary path: /usr/local/Cellar/php/7.2.8/bin/php


        The I ran



        $ composer self-update --update-keys

        Open https://composer.github.io/pubkeys.html to find the latest keys
        Enter Dev / Snapshot Public Key (including lines with -----):
        [copy and paste the dev pub key]

        Enter Tags Public Key (including lines with -----):
        [copy and paste the tags pub key]


        Then again, I ran



        $ composer self-update


        However, during installing the package, it still shows:



        Authentication required (repo.packagist.org):
        Username:


        After providing my username and password for my packagist.org account and having my credential stored in /Users/xxx/.composer/auth.json, the issue was resolved.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 4 '18 at 11:44









        kolunarkolunar

        2,13212032




        2,13212032



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39786363%2fauthentication-required-packagist-org-laravel-installation%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Use pre created SQLite database for Android project in kotlin

            Darth Vader #20

            Ondo