#php #composer-php #lumen
Вопрос:
Я пытаюсь установить Lumen на Mac OS 11.5.2. Выполнение команды composer create-project --prefer-dist laravel/lumen app
возвращает фатальную ошибку:
Installing dependencies from lock file (including require-dev)
Fatal error: Uncaught TypeError: Argument 3 passed to ComposerPackageLocker::__construct() must be an instance of ComposerInstallerInstallationManager, instance of ComposerRepositoryRepositoryManager given, called in /Users/macbox/.composer/vendor/foxy/foxy/Util/LockerUtil.php on line 41 and defined in phar:///usr/local/bin/composer/src/Composer/Package/Locker.php:60
Stack trace:
#0 /Users/macbox/.composer/vendor/foxy/foxy/Util/LockerUtil.php(41): ComposerPackageLocker->__construct(Object(ComposerIOConsoleIO), Object(ComposerJsonJsonFile), Object(ComposerRepositoryRepositoryManager), Object(ComposerInstallerInstallationManager), '{n "name": "...')
#1 /Users/macbox/.composer/vendor/foxy/foxy/Fallback/ComposerFallback.php(101): FoxyUtilLockerUtil::getLocker(Object(ComposerIOConsoleIO), Object(ComposerRepositoryRepositoryManager), Object(ComposerInstallerInstallationManager), './composer.json')
#2 phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(217) : eval()' in phar:///usr/local/bin/composer/src/Composer/Package/Locker.php on line 60
Я использую PHP версии 7.4.2 и composer версии 2.1.8.
Кто-нибудь сталкивался с этой проблемой раньше и нашел решение? Я не смог найти никаких подобных проблем.