We've got a project running on laravel 5.3 - we're going to be updating it to 5.4 once the vendor packages are all updated.
However we're currently getting the following when running composer require laravel/dusk and wondering if there is anybody who knows a way around this?
Problem 1
- Conclusion: don't install laravel/dusk v1.0.5
- Conclusion: don't install laravel/dusk v1.0.4
- Conclusion: don't install laravel/dusk v1.0.3
- Conclusion: don't install laravel/dusk v1.0.2
- Conclusion: don't install laravel/dusk v1.0.1
- Conclusion: remove symfony/console v3.1.10
- Installation request for laravel/dusk ^1.0 -> satisfiable by laravel/dusk[v1.0.0, v1.0.1, v1.0.2, v1.0.3, v1.0.4, v1.0.5].
- Conclusion: don't install symfony/console v3.1.10
- laravel/dusk v1.0.0 requires symfony/console ~3.2 -> satisfiable by symfony/console[v3.2.0, v3.2.1, v3.2.2].
- Can only install one of: symfony/console[v3.2.0, v3.1.10].
- Can only install one of: symfony/console[v3.2.1, v3.1.10].
- Can only install one of: symfony/console[v3.2.2, v3.1.10].
- Installation request for symfony/console (locked at v3.1.10) -> satisfiable by symfony/console[v3.1.10].
Laravel Dusk is a new tool that will be introduced in Laravel 5.4.
Its not supported by the Laravel 5.4 below version due to some package dependencies.
So you need to upgrade into 5.4 to take the advantages of the Laravel Dusk
upgrade doc here
Related
I wanted to try to create a simple chatbot web-app using Laravel Botman.
I've created a new Laravel project but when I try to install Botman through the terminal. I get this error.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install botman/botman 2.6.1 (conflict analysis result)
- symfony/mailer v6.0.7 requires symfony/service-contracts ^1.1|^2|^3 -> satisfiable by symfony/service-contracts[v3.0.1].
- laravel/framework v9.7.0 requires symfony/mailer ^6.0 -> satisfiable by symfony/mailer[v6.0.7].
- Root composer.json requires botman/botman ^2.6 -> satisfiable by botman/botman[2.6.0, 2.6.1].
- Conclusion: don't install psr/container 2.0.2 (conflict analysis result)
- Conclusion: don't install psr/container 1.1.2 (conflict analysis result)
- laravel/framework is locked to version v9.7.0 and an update of this package was not requested.
- Conclusion: don't install psr/container 2.0.1 (conflict analysis result)
- botman/botman 2.6.0 requires psr/container ^1.0 -> satisfiable by psr/container[1.0.0, ..., 1.x-dev].
- You can only install one version of a package, so only one of these can be installed: psr/container[dev-master, 1.0.0, ..., 1.x-dev, 2.0.0, 2.0.1, 2.0.2].
- psr/container 2.0.x-dev is an alias of psr/container dev-master and thus requires it to be installed too.
- symfony/service-contracts v3.0.1 requires psr/container ^2.0 -> satisfiable by psr/container[2.0.0, 2.0.1, 2.0.2, 2.0.x-dev (alias of dev-master)].
- Conclusion: don't install psr/container[2.0.0] | install one of psr/container[2.0.1, 2.0.2] (conflict analysis result)
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I've tried deleting the composer.lock file and installing it again.
I tried using composer require botman/botman --with-all-dependencies but it still didn't work. Can anyone help me out?
Thank you.
Try adding to composer.json in the section requires "psr/container": "2.0.2 as 1.1.2","symfony/http-foundation": "6.0.3 as 5.4.3" and after that in the terminal 'composer requires botman/botman --with-all-dependencies
try composer require botman/botman composer require mpociot/botman package is abandoned
I am trying to install the Argon template for laravel on a fresh install, apart from filling in the .env with the database information which works i haven't done anything to this install of laravel, the guide im following when installing the theme is the official one in the argon docs at this link: https://argon-dashboard-laravel.creative-tim.com/docs/getting-started/quick-start.html
The instructions are
Cd to your Laravel app
Install this preset via composer require laravel-frontend-presets/argon. No need to register the service provider. Laravel 5.5 & up can auto detect the package.
Run php artisan preset argon command to install the Argon preset. This will install all the necessary assets and also the custom auth views, it will also add the auth route in routes/web.php (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)
In your terminal run composer dump-autoload
Run php artisan migrate --seed to create basic users table
and when running composer require laravel-frontend-presets/argon
i recieve the error
λ composer require laravel-frontend-presets/argon
Using version ^1.0 for laravel-frontend-presets/argon
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel-frontend-presets/argon 1.0.1 requires laravel/framework 5.5 -> satisfiable by laravel/framework[v5.5.0] but these conflict with your requirements or minimum-stability.
- Conclusion: don't install laravel-frontend-presets/argon 1.0.12
- Conclusion: don't install laravel-frontend-presets/argon 1.0.11
- Conclusion: don't install laravel-frontend-presets/argon v1.0.10
- Conclusion: don't install laravel-frontend-presets/argon 1.0.9
- Conclusion: don't install laravel-frontend-presets/argon 1.0.8
- Conclusion: don't install laravel-frontend-presets/argon 1.0.7
- Conclusion: don't install laravel-frontend-presets/argon 1.0.6
- Conclusion: don't install laravel-frontend-presets/argon 1.0.5
- Conclusion: don't install laravel-frontend-presets/argon 1.0.4
- Installation request for laravel/framework (locked at v7.0.7, required as ^7.0) -> satisfiable by laravel/framework[v7.0.7].
- Conclusion: don't install laravel-frontend-presets/argon 1.0.3
- Conclusion: don't install laravel-frontend-presets/argon 1.0.2
- Can only install one of: laravel/framework[7.x-dev, 5.5.x-dev].
- Can only install one of: laravel/framework[v7.0.0, 5.5.x-dev].
- Can only install one of: laravel/framework[v7.0.1, 5.5.x-dev].
- Can only install one of: laravel/framework[v7.0.2, 5.5.x-dev].
- Can only install one of: laravel/framework[v7.0.3, 5.5.x-dev].
- Can only install one of: laravel/framework[v7.0.4, 5.5.x-dev].
- Can only install one of: laravel/framework[v7.0.5, 5.5.x-dev].
- Can only install one of: laravel/framework[v7.0.6, 5.5.x-dev].
- Can only install one of: laravel/framework[v7.0.7, 5.5.x-dev].
- Can only install one of: laravel/framework[5.5.x-dev, v7.0.7].
- Can only install one of: laravel/framework[5.5.x-dev, v7.0.7].
- laravel-frontend-presets/argon 1.0.0 requires laravel/framework 5.5.* -> satisfiable by laravel/framework[5.5.x-dev].
- Installation request for laravel-frontend-presets/argon ^1.0 -> satisfiable by laravel-frontend-presets/argon[1.0.0, 1.0.1, 1.0.11, 1.0.12, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, v1.0.10].
- Installation request for laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7].
Installation failed, reverting ./composer.json to its original content.
why is this?
Thanks!
i think you are required to update you Laravel version
you could use this https://laravel.com/docs/7.x/upgrade to try upgrading it or a fresh install of your laravel framework
I'm trying to install this package https://github.com/brozot/Laravel-FCM on Laravel 6. But I'm facing following error
Using version ^1.2 for brozot/laravel-fcm
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install brozot/laravel-fcm v1.2.6
- Conclusion: don't install brozot/laravel-fcm v1.2.5
- Conclusion: don't install brozot/laravel-fcm v1.2.4
- Conclusion: don't install brozot/laravel-fcm v1.2.3
- Conclusion: don't install brozot/laravel-fcm v1.2.2
- Conclusion: don't install brozot/laravel-fcm v1.2.1
- Conclusion: remove monolog/monolog 2.0.0
- Installation request for laravel/framework (locked at v6.2.0, required as ^6.2) -> satisfiable by laravel/framework[v6.2.0].
- Installation request for brozot/laravel-fcm ^1.2 -> satisfiable by brozot/laravel-fcm[v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.2.4, v1.2.5, v1.2.6].
- Conclusion: don't install monolog/monolog 2.0.0
- brozot/laravel-fcm v1.2.0 requires monolog/monolog ^1.19 -> satisfiable by monolog/monolog[1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.25.0, 1.25.1, 1.x-dev].
- Can only install one of: monolog/monolog[1.19.0, 2.0.0].
- Can only install one of: monolog/monolog[1.20.0, 2.0.0].
- Can only install one of: monolog/monolog[1.21.0, 2.0.0].
- Can only install one of: monolog/monolog[1.22.0, 2.0.0].
- Can only install one of: monolog/monolog[1.22.1, 2.0.0].
- Can only install one of: monolog/monolog[1.23.0, 2.0.0].
- Can only install one of: monolog/monolog[1.24.0, 2.0.0].
- Can only install one of: monolog/monolog[1.25.0, 2.0.0].
- Can only install one of: monolog/monolog[1.25.1, 2.0.0].
- Can only install one of: monolog/monolog[1.x-dev, 2.0.0].
- Installation request for monolog/monolog (locked at 2.0.0) -> satisfiable by monolog/monolog[2.0.0].
Installation failed, reverting ./composer.json to its original content.
I recently started with Laravel. Please ignore my mistakes.
Thanks
According to the package dependencies listed at https://packagist.org/packages/brozot/laravel-fcm (and according to the message you've posted), this package requires Monolog in v1, but currently you have Monolog installed in v2.
To resolve this, you should either ask the package maintainer whether the package could support the most recent version of Monolog (which is already listed as a bug report in https://github.com/brozot/Laravel-FCM/issues/152), or you downgrade your installed version to v1. But according to that bug report, I'd assume that the package is not compatible with Laravel 6 yet
I am trying to install ps/image-optimizer in laravel 5.7 but its showing psr/log error and not supporting latest psr/log package.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for ps/image-optimizer ^1.2 -> satisfiable by ps/imag e-optimizer[1.2.0].
- Conclusion: remove psr/log 1.1.0
- Conclusion: don't install psr/log 1.1.0
- ps/image-optimizer 1.2.0 requires psr/log 1.0.* -> satisfiable by psr/log[1.0.0, 1.0.1, 1.0.2].
- Can only install one of: psr/log[1.0.0, 1.1.0].
- Can only install one of: psr/log[1.0.1, 1.1.0].
- Can only install one of: psr/log[1.0.2, 1.1.0].
- Installation request for psr/log (locked at 1.1.0) -> satisfiable by psr/log[1.1.0].
Installation failed, reverting ./composer.json to its original content.
ps/image-optimizer
I'm trying to use PHPDoc in my Laravel project, but I'm having a bit of trouble getting it with composer.
I run composer require phpdocumentor/phpdocumentor and receive the following:
Problem 1
- Installation request for phpdocumentor/phpdocumentor ^2.9 -> satisfiable by phpdocumentor/phpdocumentor[v2.9.0].
- Conclusion: remove nikic/php-parser v3.1.1
- Conclusion: don't install nikic/php-parser v3.1.1
- phpdocumentor/phpdocumentor v2.9.0 requires phpdocumentor/reflection ^3.0 -> satisfiable by phpdocumentor/reflection[3.0.0, 3.0.1].
- phpdocumentor/reflection 3.0.0 requires nikic/php-parser ^1.0 -> satisfiable by nikic/php-parser[v1.0.0, v1.0.1, v1.0.2, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.4.0, v1.4.1].
- phpdocumentor/reflection 3.0.1 requires nikic/php-parser ^1.0 -> satisfiable by nikic/php-parser[v1.0.0, v1.0.1, v1.0.2, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.4.0, v1.4.1].
- Can only install one of: nikic/php-parser[v1.3.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.4.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.4.1, v3.1.1].
- Can only install one of: nikic/php-parser[v1.0.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.0.1, v3.1.1].
- Can only install one of: nikic/php-parser[v1.0.2, v3.1.1].
- Can only install one of: nikic/php-parser[v1.1.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.2.0, v3.1.1].
- Can only install one of: nikic/php-parser[v1.2.1, v3.1.1].
- Can only install one of: nikic/php-parser[v1.2.2, v3.1.1].
- Installation request for nikic/php-parser (locked at v3.1.1) -> satisfiable by nikic/php-parser[v3.1.1].
Allegedly, running composer update phpdocumentor/phpdocumentor nikic/php-parser should bring nikic/php-parser down to the version required by phpdoc, but that does not work because phpdoc is not yet installed.
I went into my vendor/ dir, and found the composer.json where nikic/php-parser is required, commented it out, composer update'd composer install'd so that phpdocumentor could require it, but no such luck.
What do you advise? How do I get PHPDoc into my project? Sorry if I'm being a fool!
Thanks!
Not a fool 😁...
This output indicates that phpdocumentor/reflection specifically knows that it needs the older nikic/php-parser version, and cannot work with the newer version that is probably a minimum for laravel. Thus, composer protects you from yourself by saying no to the update 😉
I'd say the easiest workaround here would be to download the PHAR binary [1] and put it in ./vendor/bin. That way, it's in the same place as the executable that you'd normally have (./vendor/bin/phpdoc). If you're on a Unix variant, you can symlink the PHAR so that you can call it in the same way.
[1] -- http://phpdoc.org/phpDocumentor.phar