Apiato: Can't install any composer package

Created on 7 Aug 2018  路  6Comments  路  Source: apiato/apiato

Expected Behavior

Install predis/predis

Actual Behavior


$ composer require predis/predis                                                
Using version ^1.1 for predis/predis                                            
./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 apiato/core v2.4.8                              
    - Conclusion: don't install apiato/core 2.4.7                               
    - Conclusion: don't install apiato/core v2.4.6                              
    - Conclusion: don't install apiato/core v2.4.5                              
    - Conclusion: don't install apiato/core v2.4.4                              
    - Conclusion: don't install apiato/core v2.4.3                              
    - Conclusion: don't install apiato/core v2.4.2                              
    - Conclusion: don't install apiato/core v2.4.1                              
    - Conclusion: don't install apiato/core v2.4.0                              
    - Can only install one of: apiato/core[2.4.x-dev, dev-master].              
    - Can only install one of: apiato/core[dev-master, 2.4.x-dev].              
    - Can only install one of: apiato/core[2.4.x-dev, dev-master].              
    - Installation request for apiato/core 2.4.* -> satisfiable by apiato/core[2
.4.7, 2.4.x-dev, v2.4.0, v2.4.1, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.8]
.                                                                               
    - Installation request for apiato/core (locked at dev-master, required as 2.
4.*) -> satisfiable by apiato/core[dev-master].                                 


Installation failed, reverting ./composer.json to its original content.         

Steps to Reproduce the Problem

  1. Run composer create-project apiato/apiato test ~7.4
  2. Set queues, cache and sessions drivers to redis
  3. Try opening the app. It says Class 'Predis\Client' not found
  4. Install predis by doing composer require predis/predis in project's root

Specifications

  • Apiato Version: 7.4.7

Most helpful comment

Can you please remove the composer.lock file in the main folder and then run composer update again?

All 6 comments

Same goes for any other package.

can you check, if there is a apiato/core : dev-master and apiato/core : 2.4.x in one of the composer.json files?!

There's only one entry of apiato/core in Ship's composer.json, 2.4:
"apiato/core": "2.4.*",
No other instances of apiato/core found.

Can you please remove the composer.lock file in the main folder and then run composer update again?

Yep, it worked. Downgrading apiato/core (dev-master => v2.4.8): Downloading (100%)

I think composer.lock should be updated in the main repo too, but I might be missing something.

Anyway, thanks for your help!

You're welcome

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mahmoudz picture Mahmoudz  路  7Comments

twcarefoot picture twcarefoot  路  3Comments

phuocnt0612 picture phuocnt0612  路  3Comments

muhsenmaqsudi picture muhsenmaqsudi  路  7Comments

rogerapras picture rogerapras  路  5Comments