magento-hackathon / magento-composer-installer

Composer installer for Magento modules
210 stars 156 forks source link

Do not create magento directory - Error exception #158

Closed ihor-sviziev closed 9 years ago

ihor-sviziev commented 9 years ago
composer require magento-hackathon/magento-composer-installer

Using version ~2.1 for magento-hackathon/magento-composer-installer ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev)

please define your magento root dir [root]magento magento root dir "magento" missing! create now? [Y,n] no

[ErrorException]
Array to string conversion

Exception trace:
 () at /home/igor/.../vendor/magento-hackathon/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Installer/MagentoInstallerAbstract.php:630
 Composer\Util\ErrorHandler::handle() at n/a:n/a
 join() at /home/igor/.../vendor/magento-hackathon/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Installer/MagentoInstallerAbstract.php:630
 MagentoHackathon\Composer\Magento\Installer\MagentoInstallerAbstract->joinPath() at /home/igor/.../vendor/magento-hackathon/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Installer/MagentoInstallerAbstract.php:641
 MagentoHackathon\Composer\Magento\Installer\MagentoInstallerAbstract->joinFilePath() at /home/igor/.../vendor/magento-hackathon/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Installer/MagentoInstallerAbstract.php:207
 MagentoHackathon\Composer\Magento\Installer\MagentoInstallerAbstract->initMagentoRootDir() at /home/igor/.../vendor/magento-hackathon/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Installer/MagentoInstallerAbstract.php:148
 MagentoHackathon\Composer\Magento\Installer\MagentoInstallerAbstract->__construct() at /home/igor/.../vendor/magento-hackathon/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Installer/ModuleInstaller.php:32
 MagentoHackathon\Composer\Magento\Installer\ModuleInstaller->__construct() at /home/igor/.../vendor/magento-hackathon/magento-composer-installer/src/MagentoHackathon/Composer/Magento/Plugin.php:133
 MagentoHackathon\Composer\Magento\Plugin->activate() at phar:///home/igor/bin/composer.phar/src/Composer/Plugin/PluginManager.php:83
 Composer\Plugin\PluginManager->addPlugin() at phar:///home/igor/bin/composer.phar/src/Composer/Plugin/PluginManager.php:248
 Composer\Plugin\PluginManager->registerPackage() at phar:///home/igor/bin/composer.phar/src/Composer/Installer/PluginInstaller.php:64
 Composer\Installer\PluginInstaller->install() at phar:///home/igor/bin/composer.phar/src/Composer/Installer/InstallationManager.php:152
 Composer\Installer\InstallationManager->install() at phar:///home/igor/bin/composer.phar/src/Composer/Installer/InstallationManager.php:139
 Composer\Installer\InstallationManager->execute() at phar:///home/igor/bin/composer.phar/src/Composer/Installer.php:575
 Composer\Installer->doInstall() at phar:///home/igor/bin/composer.phar/src/Composer/Installer.php:224
 Composer\Installer->run() at phar:///home/igor/bin/composer.phar/src/Composer/Command/RequireCommand.php:152
 Composer\Command\RequireCommand->execute() at phar:///home/igor/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at phar:///home/igor/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:874
 Symfony\Component\Console\Application->doRunCommand() at phar:///home/igor/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
 Symfony\Component\Console\Application->doRun() at phar:///home/igor/bin/composer.phar/src/Composer/Console/Application.php:146
 Composer\Console\Application->doRun() at phar:///home/igor/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
 Symfony\Component\Console\Application->run() at phar:///home/igor/bin/composer.phar/src/Composer/Console/Application.php:83
 Composer\Console\Application->run() at phar:///home/igor/bin/composer.phar/bin/composer:43
 require() at /home/igor/bin/composer.phar:25
Flyingmana commented 9 years ago

do you use the modman dir config? there was one fix in 2.1.1 regarding a similar error message

ihor-sviziev commented 9 years ago

@Flyingmana I doesn't use modman-root-dir directive in my composer.json. Hm, I doesn't know why installing old version of composer installer. I'll check it, maybe in 2.1.1 this issue isn't present.

ihor-sviziev commented 9 years ago

@Flyingmana Looks like this issue isn't reproducing in version 2.1.1

Flyingmana commented 9 years ago

:+1: thx for testing