skip to Main Content

My laptop has 3 php versions 7.2, 7.4 and 8.1
when installing a brand new laravel i got asked about a token even it’s not installing a private repo

enter image description here

Why is that?

2

Answers


  1. Chosen as BEST ANSWER

    I just found out that auth.json file is corrupted, So i deleted it as no need for it now.

    it is located in $HOME/.config/composer/


  2. One of the easiest solutions is you may remove/uninstall the composer and tick mark with all of its contents and then install again the composer.

    It will just remove your global laravel/installer.

    Hope it will work for you.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search