composer on osx 10 Sierra

The "https://packagist.org/packages.json" file could not be downloaded: 
failed to open stream: Operation timed out
Retrying with degraded mode, 
check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info

For some reason, ipv6 isn’t great for packagist.

Find your network adapter and turn off ipv6:

~$ networksetup -listallnetworkservices

An asterisk (*) denotes that a network service is disabled.

Wi-Fi

Bluetooth PAN

Thunderbolt Bridge

~$ networksetup -setv6off Wi-Fi

Leave a Reply

Your email address will not be published. Required fields are marked *