search

Home  >  Q&A  >  body text

composer create-project --prefer-dist laravel/laravel blog 报错

错误如下:

vagrant@homestead:~$ composer create-project --prefer-dist laravel/laravel showApi

Creating a "laravel/laravel" project at "./showApi"

https://repo.packagist.org could not be fully loaded (curl error 28 while downloading https://repo.packagist.org/packages.json: Connection timed out after 10005 milliseconds), package information was loaded from the local cache and may be out of date  [Composer\Downloader\TransportException]  curl error 28 while downloading https://repo.packagist.org/p2/laravel/laravel.json: Operation timed out after 10004   milliseconds with 0 out of 0 bytes received

P粉609232991P粉609232991960 days ago1782

reply all(1)I'll reply

  • Icetalker

    Icetalker2022-06-16 04:34:52

    The network connection is not good, change the composer source

    reply
    0
  • Cancelreply