What to do when composer fails to update your vendor packages?
Yii 2, yii2, composer, corrupt, update, package, reinstall
some of these problems when using composer with your Yii
- Running a `composer update` does not fetch any new packages (even though the source is updated)
[...]Normally you need to check the package sources and if your network connectivity is stable when doing a composer update. But in most such cases above (even though rare), you may need to refresh and reinstall your composer packages.
The normal approach is to reinstall packages. D
o the following:
Backup your `vendor` folder under your app root, and delete all files in the `vendor` folder, except `.gitignore` if it exists.
Backup your `composer.lock` file on your app root, and delete it.
Run the following command from your app
php composer.phar install --prefer-dist