I am trying to install a new laravel instance with the following command:
composer create-project laravel/larevel authii --prefer-dist
But
The fix for me was found here: https://getcomposer.org/doc/articles/troubleshooting.md#operation-timed-out-ipv6-issues-.
I had to disable IPv6 on my network interfaces. After disabling that, composer worked fine.