Open sargitcom opened 6 years ago
there is no package with the name bower-asset/selectx2
, I checked the code and cannot find selectx2 usage, seems it's a typo in the application side.
Also please clarify why are you installing NavigationBundle over OroCRM. The bundle already included at the Oro Platform and Oro CRM, there is no need to install it one more time.
@anyt I'm getting the same error when I try to run mentioned command in clean Oro Commerce 3.0:
$ bin/console oro:package:available --env=prod
In PackageManager.php line 217:
Cannot find package bower-asset/selectx2
Same for me. Clean Oro Commerce 3.1.6 + composer update to 3.1.9
Ping me if you need composer.json/.lock
hi @kkrieger85, Please clarify what is the same. Don't you have the NavigationBundle installed?
composer.lock.txt composer.json.txt
Maybe this could clarify my installation
What exact error do you have?
bin/console oro:package:available --env=prod -vvv
In PackageManager.php line 217:
[RuntimeException]
Cannot find package bower-asset/selectx2
Exception trace:
() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/oro/platform/src/Oro/Bundle/DistributionBundle/Manager/PackageManager.php:217
Oro\Bundle\DistributionBundle\Manager\PackageManager->getPreferredPackage() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/oro/platform/src/Oro/Bundle/DistributionBundle/Manager/PackageManager.php:162
Oro\Bundle\DistributionBundle\Manager\PackageManager->Oro\Bundle\DistributionBundle\Manager\{closure}() at n/a:n/a
array_reduce() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/oro/platform/src/Oro/Bundle/DistributionBundle/Manager/PackageManager.php:166
Oro\Bundle\DistributionBundle\Manager\PackageManager->getAvailable() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/var/cache/prod/ContainerMxgug74/PackageManager_841dc4f.php:18
PackageManager_841dc4f->getAvailable() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/oro/platform/src/Oro/Bundle/DistributionBundle/Command/ListAvailablePackagesCommand.php:28
Oro\Bundle\DistributionBundle\Command\ListAvailablePackagesCommand->execute() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:978
Symfony\Component\Console\Application->doRunCommand() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255
Symfony\Component\Console\Application->doRun() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
Symfony\Component\Console\Application->run() at /var/www/share/orocommerce-project/production/releases/oroapp-3.1.6/bin/console:30
oro:package:available [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--disabled-listeners DISABLED-LISTENERS] [--current-user CURRENT-USER] [--current-organization CURRENT-ORGANIZATION] [--] <command>
This command is a part of Oro Package Manager that has been deprecated because of many issues and will be removed in further versions. The Package Manager has no benefits over using plain composer
commands. And there is a big chance that the bug will not be fixed at all as it has a low priority.
However, there is an alternative solution.
If you want to install an external package, you can use composer require
directly as mentioned in doc.
When you want to know the list of installed packages, you can use composer info
, in combination with grep you can get info on some specific vendor packages or a single package, like with composer info | grep oro/
you will get info about all the Oro packages.
I've fresh installation of OroCRM community edition. I want to install NavigationBundle using CLI. I've typed in php
app/console oro:package:available
and I got "Cannot find package bower-asset/selectx2" error. Also, NavigationBundle is missing from installation, thou many tutorials about adding link to menu are using that bundle. How to fix those 2 issues?