#Error installing Laravel Installer

4 messages · Page 1 of 1 (latest)

late frigate
#

I get the following error when running composer global require laravel/installer. Can someone advice what the issue may be?

composer global require laravel/installer
Changed current directory to /Users/abisheksrikaanth/.composer
Using version ^5.7 for laravel/installer
./composer.json has been updated
Running composer update laravel/installer
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/filesystem[v10.20.0, ..., v10.48.8] require symfony/finder ^6.2 -> found symfony/finder[v6.2.0, ..., v6.4.0] but the package is fixed to v5.4.35 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - illuminate/filesystem[v11.0.0, ..., v11.4.0] require illuminate/collections ^11.0 -> found illuminate/collections[v11.0.0, ..., v11.4.0] but the package is fixed to v10.48.8 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - laravel/installer[v5.7.0, ..., v5.7.2] require illuminate/filesystem ^10.20|^11.0 -> satisfiable by illuminate/filesystem[v10.20.0, ..., v10.48.8, v11.0.0, ..., v11.4.0].
    - Root composer.json requires laravel/installer ^5.7 -> satisfiable by laravel/installer[v5.7.0, v5.7.1, v5.7.2].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require laravel/installer:*" to figure out if any version is installable, or "composer require laravel/installer:^2.1" if you know which you need.

I tried to use --with-all-dependencies as well and still get the same error.

tulip dust
#

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
have you tried again after adding the flag?

#

there are installed packages which have dependencies conflict with the laravel/installer.

violet bluff
#

You have something else installed globally that requires Laravel 10