composer unable to install laravel/passport - php

I have created a new project with
laravel new blogposts
using "Laravel Installer 2.0.1" globally installed on my ubuntu 18.
When i trying to install passport using
composer require laravel/passport
following errors are their
Using version ^6.0 for laravel/passport
./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 laravel/passport v6.0.6
- Conclusion: don't install laravel/passport v6.0.5
- Conclusion: don't install laravel/passport v6.0.4
- Conclusion: don't install laravel/passport v6.0.3
- Conclusion: don't install laravel/passport v6.0.2
- Conclusion: don't install laravel/passport v6.0.1
- Conclusion: don't install laravel/passport v6.0.0
- Conclusion: don't install laravel/passport 6.0.x-dev
- Conclusion: remove paragonie/random_compat v9.99.99
- Installation request for laravel/passport ^6.0 -> satisfiable by laravel/passport[6.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.0.5, v6.0.6].
- Conclusion: don't install paragonie/random_compat v9.99.99
- laravel/passport 6.0.x-dev requires league/oauth2-server ^7.0 -> satisfiable by league/oauth2-server[7.0.0, 7.1.0, 7.1.1, 7.2.0].
- league/oauth2-server 7.1.0 requires defuse/php-encryption ^2.1 -> satisfiable by defuse/php-encryption[v2.1.0, v2.2.0].
- league/oauth2-server 7.1.1 requires defuse/php-encryption ^2.1 -> satisfiable by defuse/php-encryption[v2.1.0, v2.2.0].
- league/oauth2-server 7.2.0 requires defuse/php-encryption ^2.1 -> satisfiable by defuse/php-encryption[v2.1.0, v2.2.0].
- league/oauth2-server 7.0.0 requires paragonie/random_compat ^2.0 -> satisfiable by paragonie/random_compat[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
- defuse/php-encryption v2.1.0 requires paragonie/random_compat ~2.0 -> satisfiable by paragonie/random_compat[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
- defuse/php-encryption v2.2.0 requires paragonie/random_compat ~2.0 -> satisfiable by paragonie/random_compat[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
- Can only install one of: paragonie/random_compat[v2.0.0, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.1, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.10, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.11, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.12, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.13, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.14, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.15, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.16, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.17, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.2, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.3, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.4, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.5, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.6, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.7, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.8, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.9, v9.99.99].
- Installation request for paragonie/random_compat (locked at v9.99.99) -> satisfiable by paragonie/random_compat[v9.99.99].
Installation failed, reverting ./composer.json to its original content.
Any help will be appreciated. Thanks.

This link may help you https://github.com/laravel/passport/issues/774
They said, it fixed their issue
composer require paragonie/random_compat:2.*
composer require laravel/passport

Same issue with Laravel 5.5.40 or higher. So you need to specify the version of the passport like this;
composer require paragonie/random_compat:2.*
composer require laravel/passport=~4.0

Try this! It worked for me
composer require paragonie/random_compat:2.*
composer require laravel/passport=~4.0

Go to your composer.json file, remove the version
You need to set it to:
{
"require": {
"rackspace/php-opencloud": "dev-master"
}
}

Go to your composer.json file
And set below :
"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "5.5.*",
"laravel/passport": "~4.0",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
},
And then run composer update command.

I am unable to comment since I do not have 50 Rep but I would like to add onto rkj's solution. Those commands do work but in my case I was running laravel through homestead and you cannot fetch those packages while sshing into homestead you must use your global composer to fetch the packages. This is a windows 10 machine also to clarify.

simply install any lower version of passport, Run the command:
composer require laravel/passport "5.*"

Related

Composer failure when installing Laravel + Voyager with league/flysystem

I did a composer create-project laravel/laravel . and a composer require tcg/voyager.
I keep getting this.
Using version ^1.4 for tcg/voyager
./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 tcg/voyager v1.4.2
- Conclusion: don't install tcg/voyager v1.4.1
- Conclusion: don't install tcg/voyager v1.4.0
- Conclusion: don't install tcg/voyager 1.x-dev
- Conclusion: remove league/flysystem 1.1.0
- Installation request for tcg/voyager ^1.4 -> satisfiable by tcg/voyager[1.4.x-dev, 1.x-dev, v1.4.0, v1.4.1, v1.4.2].
- Conclusion: don't install league/flysystem 1.1.0
- tcg/voyager 1.4.x-dev requires league/flysystem ~1.0.41 -> satisfiable by league/flysystem[1.0.41, 1.0.42, 1.0.43, 1.0.44, 1.0.45, 1.0.46, 1.0.47, 1.0.48, 1.0.49, 1.0.50, 1.0.51, 1.0.52, 1.0.53, 1.0.54, 1.0.55, 1.0.56, 1.0.57, 1.0.58, 1.0.59, 1.0.60, 1.0.61, 1.0.62, 1.0.63, 1.0.64, 1.0.65, 1.0.66, 1.0.67, 1.0.68, 1.0.69, 1.0.70, 1.0.x-dev].
- Can only install one of: league/flysystem[1.0.41, 1.1.0].
- Can only install one of: league/flysystem[1.0.42, 1.1.0].
- Can only install one of: league/flysystem[1.0.43, 1.1.0].
- Can only install one of: league/flysystem[1.0.44, 1.1.0].
- Can only install one of: league/flysystem[1.0.45, 1.1.0].
- Can only install one of: league/flysystem[1.0.46, 1.1.0].
- Can only install one of: league/flysystem[1.0.47, 1.1.0].
- Can only install one of: league/flysystem[1.0.48, 1.1.0].
- Can only install one of: league/flysystem[1.0.49, 1.1.0].
- Can only install one of: league/flysystem[1.0.50, 1.1.0].
- Can only install one of: league/flysystem[1.0.51, 1.1.0].
- Can only install one of: league/flysystem[1.0.52, 1.1.0].
- Can only install one of: league/flysystem[1.0.53, 1.1.0].
- Can only install one of: league/flysystem[1.0.54, 1.1.0].
- Can only install one of: league/flysystem[1.0.55, 1.1.0].
- Can only install one of: league/flysystem[1.0.56, 1.1.0].
- Can only install one of: league/flysystem[1.0.57, 1.1.0].
- Can only install one of: league/flysystem[1.0.58, 1.1.0].
- Can only install one of: league/flysystem[1.0.59, 1.1.0].
- Can only install one of: league/flysystem[1.0.60, 1.1.0].
- Can only install one of: league/flysystem[1.0.61, 1.1.0].
- Can only install one of: league/flysystem[1.0.62, 1.1.0].
- Can only install one of: league/flysystem[1.0.63, 1.1.0].
- Can only install one of: league/flysystem[1.0.64, 1.1.0].
- Can only install one of: league/flysystem[1.0.65, 1.1.0].
- Can only install one of: league/flysystem[1.0.66, 1.1.0].
- Can only install one of: league/flysystem[1.0.67, 1.1.0].
- Can only install one of: league/flysystem[1.0.68, 1.1.0].
- Can only install one of: league/flysystem[1.0.69, 1.1.0].
- Can only install one of: league/flysystem[1.0.70, 1.1.0].
- Can only install one of: league/flysystem[1.0.x-dev, 1.1.0].
- Installation request for league/flysystem (locked at 1.1.0) -> satisfiable by league/flysystem[1.1.0].
Installation failed, reverting ./composer.json to its original content.
I tried clearing the cache and starting the process over and also composer update --ignore-platform-reqs. None of this seems to work.
I even tried installing flysystem before voyager like this discussion says:
https://laracasts.com/discuss/channels/general-discussion/having-problems-with-laravel-53-voyager
In my case (when I run the command below):
>composer require league/flysystem-sftp
PHP Warning: Module 'openssl' already loaded in Unknown on line 0
Warning: Module 'openssl' already loaded in Unknown on line 0 Using version ^2.0 for league/flysystem-sftp ./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 league/flysystem-sftp 2.0.2
- Conclusion: don't install league/flysystem-sftp 2.0.1
- Conclusion: don't install league/flysystem-sftp 2.0.0
- Conclusion: don't install league/flysystem-sftp 2.0.0-RC1
- Conclusion: don't install league/flysystem-sftp 2.0.0-beta.3
- Conclusion: don't install league/flysystem-sftp 2.0.0-beta.2
- league/flysystem-sftp 2.0.0-alpha.4 requires league/flysystem 2.0.0-alpha.3 -> satisfiable by league/flysystem[2.0.0-alpha.3].
- league/flysystem-sftp 2.0.0-beta.1 requires league/flysystem 2.0.0-alpha.3 -> satisfiable by league/flysystem[2.0.0-alpha.3].
- Conclusion: don't install league/flysystem 2.0.0-alpha.3
- league/flysystem-sftp 2.0.0-alpha.3 requires league/flysystem 2.0.0-alpha.2 -> satisfiable by league/flysystem[2.0.0-alpha.2].
- Conclusion: don't install league/flysystem 2.0.0-alpha.2
- Installation request for laravel/framework (locked at v6.20.3, required as ^6.2) -> satisfiable by laravel/framework[v6.20.3].
- league/flysystem-sftp 2.0.0-alpha.1 requires league/flysystem 2.0.0-alpha.1 -> satisfiable by league/flysystem[2.0.0-alpha.1].
- league/flysystem-sftp 2.0.0-alpha.2 requires league/flysystem 2.0.0-alpha.1 -> satisfiable by league/flysystem[2.0.0-alpha.1].
- Conclusion: don't install league/flysystem 2.0.0-alpha.1
- Conclusion: don't install league/flysystem-sftp 2.x-dev|remove league/flysystem 1.1.3|install league/flysystem 2.0.0-alpha.1|install league/flysystem 2.0.0-alpha.2|install league/flysystem 2.0.0-alpha.3
- Conclusion: don't install league/flysystem-sftp 2.x-dev|don't install league/flysystem 1.1.3|install league/flysystem
2.0.0-alpha.1|install league/flysystem 2.0.0-alpha.2|install league/flysystem 2.0.0-alpha.3
- Installation request for league/flysystem-sftp ^2.0 -> satisfiable by league/flysystem-sftp[2.0.0, 2.0.0-RC1, 2.0.0-alpha.1,
2.0.0-alpha.2, 2.0.0-alpha.3, 2.0.0-alpha.4, 2.0.0-beta.1, 2.0.0-beta.2, 2.0.0-beta.3, 2.0.1, 2.0.2, 2.x-dev].
- league/flysystem-sftp 2.x-dev requires league/flysystem ^2.0.0 -> satisfiable by league/flysystem[2.0.0, 2.0.0-RC1, 2.0.0-alpha.1, 2.0.0-alpha.2, 2.0.0-alpha.3, 2.0.0-alpha.4, 2.0.0-beta.1, 2.0.0-beta.2, 2.0.0-beta.3, 2.0.1, 2.0.2, 2.x-dev].
- Can only install one of: league/flysystem[2.0.0, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-RC1, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-alpha.4, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-beta.1, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-beta.2, 1.1.3].
- Can only install one of: league/flysystem[2.0.0-beta.3, 1.1.3].
- Can only install one of: league/flysystem[2.0.1, 1.1.3].
- Can only install one of: league/flysystem[2.0.2, 1.1.3].
- Can only install one of: league/flysystem[2.x-dev, 1.1.3].
- Installation request for league/flysystem (locked at 1.1.3) -> satisfiable by league/flysystem[1.1.3].
Installation failed, reverting ./composer.json to its original content.
I have fixed the above error as follows:
>composer require league/flysystem-sftp 1.*
Issue was resolved on PR Merge.
https://github.com/the-control-group/voyager/pull/5040
Voyager installs correctly now.

why am i receiving a error when installing argon on a fresh laravel install?

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

Error laravel 5.8 installing package (Installation failed, reverting ./composer.json to its original content.)

Console Output
Using version ^8.0 for laravel/passport
./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: remove laravel/framework v5.8.35
- Conclusion: don't install laravel/framework v5.8.35
- laravel/passport 8.x-dev requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support
[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1].
- laravel/passport v8.0.0 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[
6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1].
- Can only install one of: laravel/framework[6.x-dev, v5.8.35].
- don't install illuminate/support 6.x-dev|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.0|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.1|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.2|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.3|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.4|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.1.0|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.2.0|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.3.0|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.4.1|don't install laravel/framework v5.8.35
- don't install illuminate/support 7.0.x-dev|don't install laravel/framework v5.8.35
- Installation request for laravel/framework (locked at v5.8.35, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.35].
- Installation request for laravel/passport ^8.0 -> satisfiable by laravel/passport[8.x-dev, v8.0.0].
Installation failed, reverting ./composer.json to its original content.
To install the most recent version laravel/passport for Laravel Framework 5.8, run the following command
composer require laravel/passport
If you are still getting an error then install laravel/passport v7.5.1
Add to composer.json file:
"require": {
"laravel/passport": "^7.5.1"
},
After, Run this command in the command prompt: composer update
I tested laravel/passport v7.5.1 It is compatible with Laravel Framework 5.8
NOTE: If you need this version of "laravel/passport": "^8.0" then you must need laravel 6
Isn't it obvious? To use the version of laravel/passport ^ 8.0.
You must install laravel 6.
Required statement: https://laravel.com/docs/6.x/upgrade
What is the command you are using?
composer require laravel/passport
I recommend you use it. Laravel version you use will make the appropriate installation.
use composer require laravel/passport=^7.4
Can you try to include a previous version of passport, e.g.
composer require laravel/passport "7.5.1"
I would recommend Özgür Can Karagöz answer though if you have the time and your project isn't huge.
composer require laravel/passport "7.5.1"
is working for laravel version 5.8*

Silverstripe Elemental Module Composer install error

I have a clean install of Silverstripe running 4.
I am trying to install this module: https://github.com/dnadesign/silverstripe-elemental/tree/2.1
Command:
composer require dnadesign/silverstripe-elemental 2.x-dev
and I get this error in composer:
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install dnadesign/silverstripe-elemental 2.1.2
- Conclusion: don't install dnadesign/silverstripe-elemental 2.1.1
- Conclusion: don't install dnadesign/silverstripe-elemental 2.1.0
- Conclusion: don't install dnadesign/silverstripe-elemental 2.0.1
- Conclusion: don't install dnadesign/silverstripe-elemental 2.0.0
- Conclusion: don't install dnadesign/silverstripe-elemental 2.0.0-beta1
- Installation request for dnadesign/silverstripe-elemental-list dev-master -> satisfiable by dnadesign/silverstripe-elemental-list[dev-master].
- don't install dnadesign/silverstripe-elemental 2.2.x-dev|install dnadesign/silverstripe-elemental 2.x-dev
- Conclusion: don't install dnadesign/silverstripe-elemental 2.x-dev
- Conclusion: don't install dnadesign/silverstripe-elemental 2.1.x-dev
- dnadesign/silverstripe-elemental-list dev-master requires dnadesign/silverstripe-elemental >=3.0 -> satisfiable by dnadesign/silverstripe-elemental[3.0.x-dev, 3.1.x-dev, 3.x-dev, 3.2.x-dev, 4.0.x-dev, dev-master, 4.x-dev].
- Can only install one of: dnadesign/silverstripe-elemental[3.0.x-dev, 2.0.x-dev].
- Can only install one of: dnadesign/silverstripe-elemental[3.1.x-dev, 2.0.x-dev].
- Can only install one of: dnadesign/silverstripe-elemental[3.x-dev, 2.0.x-dev].
- Can only install one of: dnadesign/silverstripe-elemental[3.2.x-dev, 2.0.x-dev].
- Can only install one of: dnadesign/silverstripe-elemental[4.0.x-dev, 2.0.x-dev].
- Can only install one of: dnadesign/silverstripe-elemental[dev-master, 2.0.x-dev].
- Can only install one of: dnadesign/silverstripe-elemental[4.x-dev, 2.0.x-dev].
- Installation request for dnadesign/silverstripe-elemental 2.* -> satisfiable by dnadesign/silverstripe-elemental[2.0.0, 2.0.0-beta1, 2.0.1, 2.0.x-dev, 2.1.0, 2.1.1, 2.1.2, 2.1.x-dev, 2.x-dev, 2.2.x-dev].
Why don't you try installing composer require dnadesign/silverstripe-elemental dev-master rather than 2.x-dev since you have a clean install of ss4.
https://addons.silverstripe.org/add-ons/dnadesign/silverstripe-elemental

Composer: unresolvable dependencies when installing Silex application

I am trying to build a Silex application, with the following requirements
requirements
Yaml configuration
Doctrine ORM
Simple User Authorisation
my composer.json
{
"require": {
"silex/silex": "~1.2",
"symfony/yaml": "2.6.7",
"doctrine/dbal": "~2.2",
"deralex/yaml-config-service-provider": "1.0.x-dev",
"dflydev/doctrine-orm-service-provider": "2.0.*#dev",
"jasongrimes/silex-simpleuser": "~1.0"
}
}
When I run composer update, I get the following
output
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: remove silex/silex v1.2.4
- Conclusion: don't install dflydev/doctrine-orm-service-provider 2.0.x-dev
- Conclusion: don't install dflydev/doctrine-orm-service-provider v2.0.0|remove pimple/pimple v1.1.1|install pimple/pimple v3.0.0
- Conclusion: don't install pimple/pimple v3.0.0
- Conclusion: don't install silex/silex v1.2.4
- Conclusion: don't install silex/silex v1.2.3
- Conclusion: don't install silex/silex v1.2.2
- Conclusion: don't install silex/silex v1.2.1
- Conclusion: don't install pimple/pimple v1.1.1
- Installation request for dflydev/doctrine-orm-service-provider 2.0.*#dev -> satisfiable by dflydev/doctrine-orm-service-provider[2.0.x-dev, v2.0.0].
- Installation request for silex/silex ~1.2 -> satisfiable by silex/silex[v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.2.4].
- silex/silex v1.2.0 requires pimple/pimple ~1.0 -> satisfiable by pimple/pimple[v1.1.1, 1.0.0, v1.0.1, v1.0.2, v1.1.0].
- Can only install one of: pimple/pimple[v2.1.0, 1.0.0].
- Can only install one of: pimple/pimple[v2.1.0, v1.0.1].
- Can only install one of: pimple/pimple[v2.1.0, v1.0.2].
- Can only install one of: pimple/pimple[v2.1.0, v1.1.0].
- dflydev/doctrine-orm-service-provider v2.0.0 requires pimple/pimple >=2.1,<4 -> satisfiable by pimple/pimple[v2.1.0, v2.1.1, v3.0.0].
- Conclusion: don't install pimple/pimple v2.1.1
I'm not too familiar with groking the intricasies of composer json file syntax.
How do I solve this?
Two of your dependencies require different versions of pimple package:
silex/silex v1.2.0 requires pimple/pimple ~1.0
dflydev/doctrine-orm-service-provider v2.0.0 requires pimple/pimple >=2.1
You can switch to latest silex or previous version of doctrine-orm-service-provider to resolve this.
Look at packagist.org to see available versions with their dependencies: silex, doctrine-orm-service-provider.

Categories