在代理后安装Laravel

3
我正在尝试在Windows计算机上安装Laravel。
我已经按照此指南进行了操作,直到第11步。
http://www.wikihow.com/Install-Laravel-Framework-in-Windows

我还执行了两个命令(这些命令来自https://dev59.com/fGQm5IYBdhLWcg3w0RxV#18852026)

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 

然后我再次运行了安装composer命令,然后就完成了!感谢 @mneute。https://dev59.com/g4Hba4cB1Zd3GeqPWtmS#24958700


1
我认为这是因为它无法通过代理连接到https,你可以尝试这个防火墙后的Composer - Arun Kumar
没问题!我很高兴能帮忙。 - mneute
2个回答

3
这里提供了解决方案:
在命令行中输入以下代码,并将其中的用户名和密码替换为你的信息,IP地址和端口号也替换成你的代理服务器信息:
``` 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 ```
然后再次运行安装Composer的命令即可。感谢```@mneute```给出的解答。
参考链接:https://dev59.com/g4Hba4cB1Zd3GeqPWtmS#24958700

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接