在代理后面安装 Laravel

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26780165/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 10:23:23  来源:igfitidea点击:

Install Laravel behind proxy

laravellaravel-4proxy

提问by morne

Im trying to install Laravel on a windows machine.
I followed this guide up to point 11.
http://www.wikihow.com/Install-Laravel-Framework-in-Windows

我试图在 Windows 机器上安装 Laravel。
我按照本指南一直到第 11 点
。http://www.wikihow.com/Install-Laravel-Framework-in-Windows

I also ran two commands already (which I got from https://stackoverflow.com/a/18852026/2240163)

我也已经运行了两个命令(我从https://stackoverflow.com/a/18852026/2240163得到)

set http_proxy=<your_http_proxy:proxy_port>
set https_proxy=<your_https_proxy:proxy_port>

set http_proxy=<your_http_proxy:proxy_port>
set https_proxy=<your_https_proxy:proxy_port>

But on running composer installi am met with a message

但是在跑步composer install时我收到一条消息

  C:\wamp\www\LARAVEL>composer install
  Loading composer repositories with package information

  [Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: SSL
  : The specified procedure could not be found.

  failed to open stream: Cannot connect to HTTPS server through proxy

How can I get past the proxy to install Laravel 4.

我怎样才能通过代理来安装 Laravel 4。

.
.

.
.

Here in lay the solution

解决方案就在这里

C:\wamp\www\LARAVEL>set http_proxy=http://mnel:******@192.168.20.4:8080
C:\wamp\www\LARAVEL>set https_proxy=https://mnel:******@192.168.20.4:8080 

I then ran the install composercommand again and presto! https://stackoverflow.com/a/24958700/2240163
Thanks @mneute

然后我再次运行install composer命令并快速运行! https://stackoverflow.com/a/24958700/2240163
谢谢@mneute

采纳答案by morne

Here in lay the solution

解决方案就在这里

C:\wamp\www\LARAVEL>set http_proxy=http://mnel:******@192.168.20.4:8080C:\wamp\www\LARAVEL>set https_proxy=https://mnel:******@192.168.20.4:8080

C:\wamp\www\LARAVEL>set http_proxy=http://mnel:******@192.168.20.4:8080C:\wamp\www\LARAVEL>set https_proxy=https://mnel:******@192.168.20.4:8080

I then ran the install composer command again and presto!

然后我再次运行 install composer 命令并快速运行!

https://stackoverflow.com/a/24958700/2240163

https://stackoverflow.com/a/24958700/2240163

Thanks @mneute

谢谢 @mneute

回答by Dinesh

I got this same issue when I ran composer -vvv install. I did it in windows7 computer behind a company firewall. I search and tried every possible answer but didn't work. Then I tried following and it did work https://www.calazan.com/how-to-set-the-proxy-settings-in-windows-via-command-line/

我在运行 composer -vvv install 时遇到了同样的问题。我是在公司防火墙后面的 windows7 计算机上完成的。我搜索并尝试了所有可能的答案,但没有奏效。然后我尝试了以下操作,它确实有效 https://www.calazan.com/how-to-set-the-proxy-settings-in-windows-via-command-line/