在代理后面安装Laravel

时间:2014-11-06 13:01:33

标签: laravel laravel-4 proxy

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

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

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

但是在跑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

如何通过代理安装Laravel 4。


此处为解决方案

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 

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

2 个答案:

答案 0 :(得分:1)

这里有解决方案

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

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

  

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

感谢@mneute

答案 1 :(得分:0)

当我运行composer -vvv install时,我遇到了同样的问题。我在公司防火墙后面的windows7计算机上做过。我搜索并尝试了所有可能的答案,但没有奏效。然后我尝试了以下它确实有效 First Link