【发布时间】:2022-01-13 14:32:30
【问题描述】:
我正在尝试在本地服务器上安装 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
【问题讨论】:
-
“遇到连接超时” - 看起来像网络问题
标签: composer-php magento2