Magento 2 – Move Core Modules from app/code to Vendor

composermagento2vendor

Magento 2.4.3

I need to move the Magento core files which were installed in app/code/Magento by accident to the vendor folder so they can be updated with composer. Any advice on how to do that? Could not find much on Google.

I aleady tried deleting the content of the vendor folder and running composer install or composer update. That does not install what I need, only the current vendor state will be restored.

Thanks!

Best Answer

I think your best option would be creating a new project & install using composer https://devdocs.magento.com/guides/v2.4/install-gde/composer.html

After that, simply copy from your old project any relevant code in app/code & app/design folders & composer.json file

Related Topic