当我运行命令composer install或composer update它显示以下内容时
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`
Run Code Online (Sandbox Code Playgroud)
我更改了 DNS,但这并没有解决问题。
PHP 版本:8.0.0。我用 php 版本 7.4 进行测试