Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install with Magento 2 #160

Open
joshuaadickerson opened this issue Nov 7, 2017 · 3 comments
Open

Cannot install with Magento 2 #160

joshuaadickerson opened this issue Nov 7, 2017 · 3 comments

Comments

@joshuaadickerson
Copy link

I'm not sure where the issue is - with Magento's massive changes to installing with Composer or with Prestissimo - but I get the following error when I composer creates the autoload files.

#1 /var/www/html/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Hirak\\Prestissi...')
#2 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Hirak\\Prestissi...')
#3 [internal function]: spl_autoload_call('Hirak\\Prestissi...')
#4 /var/www/html/var/composer_home/vendor/hirak/prestissimo/src/Plugin.php(63): class_exists('Hirak\\Prestissi...')
#5 /var/www/html/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(236): Hirak\Prestissimo\Plugin->activate(Object(Composer\Composer), Object(Composer\IO\BufferIO))
#6 /var/www/html/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(205): Composer\Plugin\PluginManager->addPlugin(Object(Hirak\Prestissimo\Plugin))
#7 /var/www/html/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(261): Composer\Plugin\PluginManager->registerPackage(Object(Composer\Package\CompletePackage))
#8 /var/www/html/vendor/composer/composer/src/Composer/Plugin/PluginManager.php(79): Composer\Plugin\PluginManager->loadRepository(Object(Composer\Repository\InstalledFilesystemRepository))
#9 /var/www/html/vendor/composer/composer/src/Composer/Factory.php(377): Composer\Plugin\PluginManager->loadInstalledPlugins()
#10 /var/www/html/vendor/composer/composer/src/Composer/Factory.php(569): Composer\Factory->createComposer(Object(Composer\IO\BufferIO), Array, false)
#11 /var/www/html/vendor/magento/framework/Composer/ComposerFactory.php(47): Composer\Factory::create(Object(Composer\IO\BufferIO), '/var/www/html/c...')
#12 /var/www/html/vendor/magento/framework/Composer/ComposerInformation.php(362): Magento\Framework\Composer\ComposerFactory->create()
#13 /var/www/html/vendor/magento/framework/Composer/ComposerInformation.php(375): Magento\Framework\Composer\ComposerInformation->getComposer()
#14 /var/www/html/vendor/magento/framework/Composer/ComposerInformation.php(242): Magento\Framework\Composer\ComposerInformation->getLocker()
#15 /var/www/html/vendor/magento/framework/App/ProductMetadata.php(104): Magento\Framework\Composer\ComposerInformation->getSystemPackages()
#16 /var/www/html/vendor/magento/framework/App/ProductMetadata.php(65): Magento\Framework\App\ProductMetadata->getSystemPackageVersion()
#17 /var/www/html/vendor/magento/framework/Console/Cli.php(91): Magento\Framework\App\ProductMetadata->getVersion()
#18 /var/www/html/bin/magento(22): Magento\Framework\Console\Cli->__construct('Magento CLI')
#19 {main}```
@kkrieger85
Copy link

@joshuaadickerson I think you have to install prestissimo globally before you install M2

you have composer on your server?
Then install prestissimo: $ composer global require hirak/prestissimo

After that, your M2 Installation will run faster.

@ktomk
Copy link
Contributor

ktomk commented Jan 9, 2018

If you install Prestissimo globally and remove it from your Magento 2 project, it should work. That is also the suggested mode of operation, according to the backtrace, it was installed inside the Magento 2 project which is not how Prestissimo works.

It btw. is constantly integrated with Magento 2 in the Magerun project's Travis build:

@drdouglasghd
Copy link

I have successfully used with Magento 2 by following the instructions to install it globally first.
Note: Pay attention to the user that you globally install it for. If you are building in a deployment environment, the user should be your web user, or whatever user you are installing/configuring Magento with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants