1

After running composer update, composer starts upgrading and downloading.

After that the update of packages are marked red "Update of name/module_name failed".

And all my important folders and files (bin,vendor, ..) are empty or gone.

Does anybody know what can have caused this unwanted behaviour? I managed to recover the files from backup, but it took me quite some time.

enter image description here

1
  • Remove vendor and try composer install it will work fine don't worry. Commented Oct 27, 2022 at 10:04

1 Answer 1

0

Some cases can be caused this unwanted behaviour: when you run composer update which includes updating magento version or you remove one of the following folders: vendor, vendor/magento/magento2-base (for the Open source version), magento/magento2-ee-base (for the Enterprise version).

You can resolve this issue by clear compose cache and run composer update again:

composer clear-cache
composer update
1
  • Thanks! I downgraded and upgraded composer and ran in some other odd problems. But it works again! Commented Oct 28, 2022 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.