10

When I run the command composer install or composer update it shows me the following

The following exception probably indicates you have misconfigured DNS resolver(s)
                                                                                                                
  [Composer\Downloader\TransportException]                                                                         
  curl error 6 while downloading https://flex.symfony.com/versions.json: Could not resolve host: flex.symfony.com`

I changed DNS but that did not fix the problem.

PHP version : 8.0.0. I test with php version 7.4

Alessandro Lai
  • 2,254
  • 2
  • 24
  • 32
AdamOmv
  • 101
  • 1
  • 1
  • 4
  • That site does not exist. I tried different DNS resolvers (mine, provider, online) and none can find its address. Something is not properly configured somewhere. – Nic3500 May 14 '22 at 01:28
  • 4
    See https://symfony.com/blog/the-old-flex-infrastructure-is-shutting-down – Chris Haas May 14 '22 at 02:49

1 Answers1

43

Old Flex infrastructure is being shut down, you need to update Flex to AT LEAST 1.17.1. To do that, you need to run:

composer update symfony/flex --no-plugins --no-scripts

source: https://symfony.com/blog/upgrade-flex-on-your-symfony-projects

Alessandro Lai
  • 2,254
  • 2
  • 24
  • 32
qwertz
  • 1,894
  • 17
  • 13