I'm trying to add magento2-community-edition to my composer.json file as a dependency and am having some trouble. When I add magento/project-community-edition
to my require and run create-project. At some point after the installation procecss there is and error saying NonComposerComponentRegistration.php
is not found and after some further digging it's been installed into a folder in vendor/magento/project-community-edition
and not inside the root directory. However, when I replace the require with magento/product-community-edition
like in the composer.json file. I'm missing all of the autoload files. Can anyone help me properly solve this?
EDIT
When running a magento setup:install
it threw back an error saying:
require(/var/storage/.../vendor/composer/../magento/project-community-edition/app/etc/NonComposerComponentRegistration.php): failed to open stream: No such file or directory in /var/storage/.../vendor/composer/autoload_real.php on line 70