search

Home  >  Q&A  >  body text

Why can't php - composer be downloaded? Even if it is downloaded, an error will still be reported. What's going on?

Why can’t composer be downloaded? Even if it is downloaded, an error will be reported. What’s going on?

曾经蜡笔没有小新曾经蜡笔没有小新2770 days ago549

reply all(4)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-24 11:32:58

    There are pictures and there is truth, we can’t just make guesses

    reply
    0
  • 为情所困

    为情所困2017-05-24 11:32:58

    There may be something wrong with the json format, please check it carefully

    reply
    0
  • 怪我咯

    怪我咯2017-05-24 11:32:58

    Install manually:

    1. DownloadPHP(Address: http://windows.php.net/download),配置好 php.ini and add the PHP directory to the system environment variable PATH

    2. Download composer.phar(Address: https://getcomposer.org/composer.phar),将文件放进PHP目录下,并且新建文本文件 composer.cmd,内容:@php "%~dp0composer.phar" %*.

    3. Open the command prompt and enter composer --version Check the composer version to confirm whether the command can be executed.

    4. Execute composer config -g repo.packagist composer https://packagist.phpcomposer.com in the command prompt and rewrite the Packagist mirror to the domestic mirror to speed up downloading.

    5. Enjoy Yourself!

    • EOF -

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-24 11:32:58

    Domestic mirror

    reply
    0
  • Cancelreply