[英]Install Laravel behind 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
这里是解决方案
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命令并执行!
谢谢@mneute
当我运行composer -vvv install时,我遇到了同样的问题。 我在公司防火墙后面的windows7计算机上做过。 我搜索并尝试了所有可能的答案,但没有奏效。 然后我尝试了以下它确实有效https://www.calazan.com/how-to-set-the-proxy-settings-in-windows-via-command-line/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.