Guzzle\Http\Exception\CurlException - Laravel 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25701499/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Guzzle\Http\Exception\CurlException - Laravel Error
提问by navamario
I was trying to create a laravel project, using the terminal command laravel
我试图使用终端命令创建一个 Laravel 项目 laravel
I wrote laravel new blog
and immediately appears the message Crafting application...
我写了laravel new blog
并立即出现了消息Crafting application...
Seconds after that appears the message:
几秒钟后出现消息:
[Guzzle\Http\Exception\CurlException]
[curl] 7: Failed connect to 192.241.224.13:80;
Operation timed out [url] http://192.241.224.13/laravel-craft.zip
[Guzzle\Http\Exception\CurlException]
[curl] 7: Failed connect to 192.241.224.13:80;
Operation timed out [url] http://192.241.224.13/laravel-craft.zip
Any idea to solve it?
任何想法来解决它?
回答by xdstack
You can install Laravel by issuing the Composer create-project command in your terminal:
您可以通过在终端中发出 Composer create-project 命令来安装 Laravel:
composer create-project laravel/laravel --prefer-dist
composer create-project laravel/laravel --prefer-dist
回答by osroflo
I was facing the same issue when I was trying to create a laravel 5 app using my office network:
当我尝试使用我的办公网络创建 laravel 5 应用程序时,我遇到了同样的问题:
[GuzzleHttp\Exceptio \RequestException]
Error creating resource. [url] http://cabinet.laravel.com/latest.zip[type] 2 [message] fopen(...../latest.zip): failed to open stream: HTTP request failed! [file] /home/eagledev/.composer/vendor/guzzlehttp/guzzle/src/Adapter/StreamAdapter.php [line] 367
[GuzzleHttp\Exceptio\RequestException]
创建资源时出错。[url] http://cabinet.laravel.com/latest.zip[type] 2 [message] fopen(...../latest.zip): 无法打开流:HTTP 请求失败![文件] /home/eagledev/.composer/vendor/guzzlehttp/guzzle/src/Adapter/StreamAdapter.php [行] 367
The problem was that in the company where I am working, they have a web protection software (sophos), that was blocking laravel to download files from http://cabinet.laravel.com.
问题是,在我工作的公司中,他们有一个网络保护软件 (sophos),它阻止 laravel 从http://cabinet.laravel.com下载文件。
Double check if your network is using some web protection software or a proxy.
仔细检查您的网络是否正在使用某些网络保护软件或代理。