I am trying to update Composer without any luck!
What I have tried:
$ composer self-update
[InvalidArgumentException] Command "self-update" is not defined.
$ sudo -H composer self-update
[InvalidArgumentException] Command "self-update" is not defined.
$ sudo apt-get install composer
Reading package lists... Done Building dependency tree Reading state information... Done composer is already the newest version. The following packages were automatically installed and are no longer required: libntdb1 linux-headers-4.2.0-30 linux-headers-4.2.0-30-generic linux-image-4.2.0-30-generic linux-image-extra-4.2.0-30-generic python-ntdb Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
I am trying to self-update Composer because I am facing the following each time I try:
$ composer update
Loading composer repositories with package information Updating dependencies (including require-dev) [RuntimeException] Could not load package rmrevin/yii2-fontawesome in http://packagist.org: [UnexpectedValueException] Could not parse version constraint v4.1 .: Invalid version string "v4.1." [UnexpectedValueException] Could not parse version constraint v4.1.: Invalid version string "v4.1."
How can I fix this issue?
My PHP version is:
php --version
PHP 5.6.11-1ubuntu3.4 (cli) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
My composer version is:
composer --version
Composer version @package_branch_alias_version@ (@package_version@) @release_date@