【发布时间】:2016-08-10 06:03:30
【问题描述】:
我试图在工作中安装 Laravel,但我做不到,我知道可能存在代理问题,因为有一些限制,但我不确定,这是我在终端上运行安装时收到的错误消息
我运行这个命令
composer create-project --prefer-dist laravel/laravel testproject
我收到了这个错误信息
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Operation timed out
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: No route to host
有什么想法吗?
谢谢
【问题讨论】:
-
发生此错误时最常见的问题是因为您使用了代理。您可以通过在终端中执行
sudo networksetup -getwebproxy来检查您是否在代理后面。
标签: php macos terminal laravel-5.2