Error trying to create the first dependency with the Composer init command

Asked

Viewed 14 times

-1

Good evening, I’m studying php, I’m on the part of learning to use Poser, when creating the first dependency of Poser when it comes to a part it gives the following error ...

inserir a descrição da imagem aqui

I have looked for the solution in some places but nothing resolvel, what can be sera ?

1 answer

1


Try to reset the Composer repository and use https protocol only...

composer config -g repo.packagist composer https://packagist.org
composer config -g github-protocols https ssh

This will automatically resolve the file composer.json if it contains errors.

  • 1

    It worked, let me go back to school now, brigadeo.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.