当我运行composer u
时,在laravel中收到此错误:
Loading composer repositories with package information
https://repo.packagist.org could not be fully loaded (curl error 35 while downloading https://repo.packagist.org
/packages.json: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to repo.packagist.org:443 ), package inform
ation was loaded from the local cache and may be out of date
我觉得它说“我无法连接到repo.packagist.org”
版本laravel:7
PHP代码:7.2.5
composer :2.4.4
1条答案
按热度按时间yqkkidmi1#
运行
composer config -g repo.packagist composer https://packagist.org
资源= laracasts
如果不起作用,则打开或关闭VPN。
如果问题仍然没有解决,请检查此页面并更改您的dns.it是我的工作!
https://github.com/composer/composer/issues/9376#issuecomment-718921358