Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

RonB1985's avatar

Unable to install Laravel or use composer install/update

Today when in my local environment I tried to run composer update, I got the following message:

https://i.imgur.com/G2N2Zqs.png

I never seen this before in my life, but I tried doing what it told me, so I generated a token and tried to continue. Then, I got the following errors:

https://i.imgur.com/7lZGqk1.png

After browsing and trying to find a solution, I am still stuck with the same errors after two hours of trying. What I have done so far:

- Homestead provision
- Upgrading Homestead itself
- Running sudo apt-get update and upgrade
- Trying to install a fresh copy of my repository
- Put the following in my composer.json file:

"github-oauth": { "github.com": "token here" }

- Tried this answer: https://stackoverflow.com/a/71220058/2257418
- Re-installed Vagrant / Homestead entirely

Nothing has worked for me so far, and I am stuck, I cannot even do any coding anymore until this issue has been fixed. Any suggestions?

PS. I am on Windows, using Laravel Homestead and nothing was changed before doing the composer update today. Yesterday everything was still working fine.

If you need more info let me know.

0 likes
8 replies
RonB1985's avatar

Thanks, I created a new key but the issue remains. Using git pull works fine, so not sure where the issue could be at this point. Been at it for almost 5 hours now already.

RonB1985's avatar

@pkboom Yeah, and like I said, even new installations give me these same errors, weirdly

RonB1985's avatar

Quick update, I have the same issue on my laptop and there I am using Xampp. I am tempted to create a new Github account and test to see if it works properly, because I am running out of ideas..

RonB1985's avatar

Another update, I just had a hunch so I decided to connect with my VPN to a random server, and now I am not getting any errors anymore.. Strange, anyone has any idea what this could be? I have no problems connecting with my VPN but I would like to know what could possibly be wrong here. Something with my IP address or something, just a feeling.

Just tried a fresh install of Laravel using simply the Windows command prompt, and it wasn't working either, which gave me the idea to use a VPN and try again, because I got the issue on my laptop as well (which usually uses a VPN by default).

Anyway, now I understand why nothing was working, but still would love to know how to solve this, a real solution and not a workaround by using a VPN.

RonB1985's avatar

I have also put my question up on Stackoverflow with some more information:

https://stackoverflow.com/questions/75283383/composer-install-composer-update-not-working-curl-error-28-curl-error-60

I have installed a fresh version of Windows 11, but the issue remains there as well. Tried from my work computer, on the same network at home, and there it works fine. Which is just really weird, I would love to know where the issue is coming from.

RonB1985's avatar
RonB1985
OP
Best Answer
Level 18

So in the end I figured out that some free "firewall service" from my hosting provider was causing the issue. Disabled that and now everything is working again like it should.

Please or to participate in this conversation.