In Drupal 8.9.x, After composer cache-clear. I am getting this error [Composer\Downloader\TransportException] The "drupal.org/packages.json" file could not be downloaded (HTTP/1.1 404 Not Found) .
I can't run the composer install or composer update.
I tried to remove the vendor folder & composer.lock files too.
Even i tried,
composer config -g repo.packages composer https://packages.drupal.org
tried composer diagnose and after that composer update -vvv
composer config -g repositories.drupal composer https://packages.drupal.org/8
composer config -g repositories.drupal composer https://www.drupal.org/packages.json
composer config -g repo.packagist composer https://packagist.org
But no luck.
is something wrong? before the composer cache clear it was working fine. it happens only on after composer cache clear. Any help appreciated.
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
.....