本文介绍了在代理后面安装Laravel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows机器上安装Laravel.
我遵循了本指南,直到第11点.
http://www.wikihow.com/Install-Laravel-Framework-in- Windows

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

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

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

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

但是在运行composer install时,我遇到了一条消息

But on running composer install i am met with a message

  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.

How can I get past the proxy to install 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

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

推荐答案

在这里放置解决方案

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

然后我再次运行install composer命令并进行存储!

I then ran the install composer command again and presto!

感谢@mneute

这篇关于在代理后面安装Laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 00:13