Why can’t composer be downloaded? Even if it is downloaded, an error will be reported. What’s going on?
为情所困2017-05-24 11:32:58
There may be something wrong with the json format, please check it carefully
怪我咯2017-05-24 11:32:58
Install manually:
DownloadPHP(Address: http://windows.php.net/download
),配置好 php.ini
and add the PHP directory to the system environment variable PATH
Download composer.phar(Address: https://getcomposer.org/composer.phar
),将文件放进PHP目录下,并且新建文本文件 composer.cmd
,内容:@php "%~dp0composer.phar" %*
.
Open the command prompt and enter composer --version
Check the composer version to confirm whether the command can be executed.
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.
Enjoy Yourself!
EOF -