D
D
des1roer2015-06-22 07:00:43
proxy
des1roer, 2015-06-22 07:00:43

Composer under proxy?

is there a way to make the composer work under a proxy? the distribution kit on Windows does not swing.
composer install from open server command line can't reach host

D:\open\OpenServer\domains\localhost\yii2>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)

  [Composer\Downloader\TransportException]
  The "http://packagist.org/p/provider-2013$cf2677ffd4e77b2b311e7472f978ca6bac654427d739010868d1afec9b29684a.json" file could not be downloaded: php_network_getaddres
  ses: getaddrinfo failed: ???? ???? ??????????.
  failed to open stream: php_network_getaddresses: getaddrinfo failed: ???? ???? ??????????.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bzz, 2015-06-22
@des1roer

set http_proxy=http://proxy.com
composer install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question