You are using an outdated version of Composer. Composer 2.0 is about to be released and the older 1.x releases will self-update directly to it once it is released code example
Example 1: upgrading composer globally on windows
php composer.phar self-update
Example 2: php composer update
php composer.phar update