Composer 不从 Magento 存储库下载 Magento2

Composer not downloading Magento2 from Magento repository

我正在尝试在我的本地服务器上安装 Magento 2,但是当我 运行 Composer 中的命令时( composer create-project --repository-url=https://repo.magento.com/magento/project-community-edition) 它在此消息处停止并显示错误。

    - Downloading magento/framework (103.0.3-p1)
  - Downloading magento/module-catalog (104.0.3-p1)
  - Downloading magento/module-page-builder (2.2.1-p1)
  - Downloading magento/magento2-base (2.4.3-p1)
 1/4 [=======>--------------------]  25%  - Downloading magento/framework (103.0.3-p1)
A connection timeout was encountered. If you intend to run Composer without connecting to the internet, run the command again prefixed with COMPOSER_DISABLE_NETWORK=1 to make Composer run in offline mode.
  - Downloading magento/module-page-builder (2.2.1-p1)
  - Downloading magento/magento2-base (2.4.3-p1)
 3/4 [=====================>------]  75%  - Downloading magento/magento2-base (2.4.3-p1)
  - Downloading magento/magento2-base (2.4.3-p1)

然后继续这个过程,但是好像网速很慢,因为每次下载都需要很长时间,但是速度正常。

进程因超时错误而结束。

[Composer\Downloader\TransportException]
  curl error 28 while downloading https://repo.magento.com/archives/magento/magento2-base/magento-magento2-base-2.4.3
  .0-patch1.zip: Operation timed out after 300000 milliseconds with 12913299 out of 37568572 bytes received

问题出在我的 LAN 上,当重新启动某些设备时它又开始工作了。