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

kylemcentee's avatar

Composer Package Issue

I've started to have a really strange problem when running composer for any package install/update/removal in my homestead environment running off my laptop.

For example, say I try to install stripe:

C:\dev\code\app>composer require stripe/stripe-php
Using version ^7.62 for stripe/stripe-php
./composer.json has been updated
Running composer update stripe/stripe-php
Loading composer repositories with package information
Updating dependencies

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

[Composer\Downloader\TransportException]
  The "https://packagist.org/providers/../vendor/laravel/ui.json" file could not be downloaded (HTTP/2 404 )

I get this same error when I try to install nova, uninstall cashier, etc. I am not sure what my next step is and don't even know what information* I should include here to help you all provide feedback.

*I am using Laravel 7.

0 likes
4 replies
bobbybouwmann's avatar

Mmh, it seems it can't find some file on packagist, the place where all packages are hosted.

This first thing I would try is running composer clear-cache. It could be that something has changed on one of the repos which are pointing to a different URL now

If that doesn't work you can remove your vendor directory and compoer.lock file and run composer install again and see what happens.

kylemcentee's avatar

Thank you for the quick reply. I tried running composer clear-cache and it didn't help. Before I try to remove the vendor directory, I want to make sure I know what that means and how. Will this uninstall everything, including Laravel (which I see in the vendor folder)? I just want to make sure I back up the right files.

kylemcentee's avatar

Hi @bobbybouwmann ,

Just wanted to follow up. I am having the issue still. Do I simply just...delete the vendor directory? You can see why I'm nervous about doing that without additional clarification.

Thank you.

kylemcentee's avatar

Just wanted to bump this up to see if anyone could help. Thank you.

Please or to participate in this conversation.