Why is the composer installation package not up to date?

problem description

check the Packagist package management repository to see that the latest version is 1.12 .

clipboard.png

1.11.1


1.11.1

clipboard.png

does anyone know what this is all about? TKS!

Apr.29,2021

the localized address you use


found the cause of the problem. is the reason why domestic images do not have Synchronize!

clipboard.png

clipboard.png

cancel the domestic warehouse in composer.json , and then install it to pull the latest package.
for example, if I install globally, find the composer configuration file and cancel the domestic warehouse.

vagrant@homestead:~/.composer$ ll
total 3744
drwxrwxr-x  4 vagrant vagrant    4096 Aug 21 06:46 ./
drwxr-xr-x 14 vagrant vagrant    4096 Aug 10 02:42 ../
-rw-r--r--  1 vagrant vagrant 1849094 Aug  6 13:37 2018-05-04_11-44-59-1.6.5-old.phar
-rw-r--r--  1 vagrant vagrant 1874999 Aug  7 08:23 2018-08-03_15-39-07-1.7.0-old.phar
-rw-------  1 vagrant vagrant     124 Jun  3 20:05 auth.json
drwxrwxr-x  5 vagrant vagrant    4096 Aug  6 14:03 cache/
-rw-rw-r--  1 vagrant vagrant     211 Jun  3 19:56 composer.json
-rw-rw-r--  1 vagrant vagrant   63452 Jun  3 19:56 composer.lock
-rw-------  1 vagrant vagrant      21 Aug 21 06:46 config.json
-rw-rw-r--  1 vagrant vagrant      13 Jun  3 19:55 .htaccess
-rw-r--r--  1 vagrant vagrant     799 Aug  6 13:37 keys.dev.pub
-rw-r--r--  1 vagrant vagrant     799 Aug  6 13:37 keys.tags.pub
drwxrwxr-x 18 vagrant vagrant    4096 Jun  3 19:56 vendor/

delete this code from config.json :

"repositories": {
    "packagist": {
        "type": "composer",
        "url": "https://packagist.phpcomposer.com"
    }
}

composer upgrade


mention again, use composer-registry-manager this tool to switch mirrors

composer global require slince/composer-registry-manager
$ composer repo:ls
   composer       https://packagist.org
   phpcomposer    https://packagist.phpcomposer.com
   composer-proxy https://packagist.composer-proxy.org
 * laravel-china  https://packagist.laravel-china.org
Menu