Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation in error with Laravel 9 #1476

Closed
foutesting opened this issue Feb 9, 2022 · 7 comments · Fixed by #1481
Closed

Installation in error with Laravel 9 #1476

foutesting opened this issue Feb 9, 2022 · 7 comments · Fixed by #1481

Comments

@foutesting
Copy link

foutesting commented Feb 9, 2022

Environment :
Windows 10
PHP 8.1.2
Composer : 2.2.6
Node : 16.14.0
Npm : 6.14.5
Laravel : 9
Laravel framework : 9.0.1

When I run the following command on a clean installation :

composer require spatie/laravel-backup

Using version ^7.7 for spatie/laravel-backup
./composer.json has been updated
Running composer update spatie/laravel-backup
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 spatie/laravel-backup ^7.7 -> satisfiable by spatie/laravel-backup[7.7.0, ..., v7.x-dev].
- spatie/laravel-backup[7.7.0, ..., v7.x-dev] require illuminate/console ^8.36 -> found illuminate/console[v8.36.0, ..., 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 spatie/laravel-backup:*" to figure out if any version is installable, or "composer require spatie/laravel-backup:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

@Gjjansen
Copy link

Gjjansen commented Feb 9, 2022

Support for laravel 9 got added in version 8.0.

Try installing using:
composer require spatie/laravel-backup "^8.0"

@foutesting
Copy link
Author

foutesting commented Feb 10, 2022

composer require spatie/laravel-backup "^8.0"
Response received :

[InvalidArgumentException]
Package spatie/laravel-backup at version 8.0 has requirements incompatible with your PHP version, PHP extensions and Composer version:
- spatie/laravel-backup 8.0.0 requires ext-pcntl * but it is not present.

@Gjjansen
Copy link

composer require spatie/laravel-backup "^8.0" Response received :

[InvalidArgumentException] Package spatie/laravel-backup at version 8.0 has requirements incompatible with your PHP version, PHP extensions and Composer version: - spatie/laravel-backup 8.0.0 requires ext-pcntl * but it is not present.

On windows you need to ignore ext-pcntl: composer require spatie/laravel-backup "^8.0" --ignore-platform-reqs

@foutesting
Copy link
Author

It work ! Thanks a lot

@erikn69
Copy link
Contributor

erikn69 commented Feb 10, 2022

On V7 ext-pcntl was optional

if ($this->runningInConsole() && SignalRegistry::isSupported()) {
$this->handlesSignals[] = SIGINT;
}

@erikn69
Copy link
Contributor

erikn69 commented Feb 10, 2022

Fixed on 8.0.2

@AlamBinary01
Copy link

http@http:~/Desktop/socketImplementation$ composer require beyondcode/laravel-websockets -W
./composer.json has been updated
Running composer update beyondcode/laravel-websockets --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- beyondcode/laravel-websockets[1.14.0, ..., 1.14.1] require illuminate/console ^6.0|^7.0|^8.0|^9.0|^10.0 -> satisfiable by illuminate/console[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.22].
- beyondcode/laravel-websockets[1.0.0, ..., 1.3.0] require php ^7.1 -> your php version (8.3.11) does not satisfy that requirement.
- beyondcode/laravel-websockets[1.4.0, ..., 1.10.0] require php ^7.2 -> your php version (8.3.11) does not satisfy that requirement.
- beyondcode/laravel-websockets[1.11.0, ..., 1.13.0] require guzzlehttp/psr7 ^1.5 -> found guzzlehttp/psr7[1.5.0, ..., 1.9.1] but these were not loaded, likely because it conflicts with another require.
- beyondcode/laravel-websockets[1.13.1, ..., 1.13.2] require illuminate/console ^6.0|^7.0|^8.0|^9.0 -> found illuminate/console[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
- illuminate/console[v10.25.1, ..., v10.48.22] require nunomaduro/termwind ^1.13 -> found nunomaduro/termwind[v1.13.0, ..., v1.15.1] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires beyondcode/laravel-websockets * -> satisfiable by beyondcode/laravel-websockets[1.0.0, ..., 1.14.1].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require beyondcode/laravel-websockets:*" to figure out if any version is installable, or "composer require beyondcode/laravel-websockets:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

How i solve this error in laravel 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants