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.
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.
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.
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.