Closed sts-ryan-holton closed 2 years ago
What PHP version are you using?
I tried with your composer.json and it just worked correctly.
And then adding horizon:
+ $ composer require laravel/horizon
Using version ^5.9 for laravel/horizon
./composer.json has been updated
Running composer update laravel/horizon
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking laravel/horizon (v5.9.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Downloading laravel/horizon (v5.9.3)
- Installing laravel/horizon (v5.9.3): Extracting archive
1 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package laravel/nexmo-notification-channel is abandoned, you should avoid using it. Use laravel/vonage-notification-channel instead.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
87 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
That it tries to use 0.1.0 in your case is fishy.
Maybe something weird in your composer.lock
? Make a backup of everything, remove the lock file and the vendor dir and install everything again.
Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.
Ty @mfn
@mfn I'm using PHP 7.4 on a Windows 10 machine. Further digging suggests that even if Horizon installed it still wouldn't work on Windows without something like Docker?
I see; I can't test this (no windows here) but AFAIK yes, you need the pcntl, extension which is Linux-only.
Note: This extension is not available on Windows platforms.
I'm facing the exact same problem with :
Exact/Similar problem:
Already tried to remove lock, same result.
www@18dd5686d59d:/var/www/myapp$ php composer.phar require laravel/horizon
Using version ^0.1.0 for laravel/horizon
./composer.json has been updated
Running composer update laravel/horizon
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires laravel/horizon ^0.1.0 -> satisfiable by laravel/horizon[v0.1.0].
- laravel/horizon v0.1.0 requires illuminate/contracts ~5.4 -> found illuminate/contracts[v5.4.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require laravel/horizon:*" to figure out if any version is installable, or "composer require laravel/horizon:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
www@18dd5686d59d:/var/www/myapp$ php --version
PHP 8.1.4 (cli) (built: Mar 29 2022 01:48:35) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.4, Copyright (c) Zend Technologies
with Zend OPcache v8.1.4, Copyright (c), by Zend Technologies
www@18dd5686d59d:/var/www/myapp$ php artisan --version
Laravel Framework 8.83.13
www@18dd5686d59d:/var/www/myapp$
Using version ^0.1.0 for laravel/horizon
This is definitely not normal.
What does your composer.json
look like?
FYI - I had the same problem. For some reason, when running "composer require laravel/horizon" we get the above. After some digging, turns out my PHP was missing pcntl extension (yes - on Linux). After installing that and running again, it installs without issue.
Description:
Trying to install Laravel Horizon into my Laravel 8 project locally but am getting an error message at the thirst part,
composer require laravel/horizon
and need to know what I'm missing, mycomposer.json
file dependencies are: