Laravel new 创建新项目提示网络超时
安装laravel/installer(composer global require laravel/installer)后,使用Laravel 安装器创建新项目提示网络超时,错误如下:
https://repo.packagist.org could not be fully loaded (curl error 56 while downloading https://repo.packagist.org/p2/guzzlehttp/promises.json: OpenSSL SSL_read: Connection was reset, errno 10054), package information was loaded from the local cache and may be out of date
解决方法:更换composer镜像地址,使用阿里云Composer镜像站-阿里云开发者社区
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
再尝试使用laravel new 创建项目就可以了。
