phuclh / flysystem-imagekit

A flysystem driver for Imagekit
MIT License
2 stars 1 forks source link

composer install error with laravel 10 #10

Open sujithtomy opened 1 year ago

sujithtomy commented 1 year ago

upon install getting following error

composer require phuclh/flysystem-imagekit


Info from https://repo.packagist.org: #StandWithUkraine                                                                                                                                                            
./composer.json has been updated                                                                                                                                                                                   
Running composer update phuclh/flysystem-imagekit                                                                                                                                                                  
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 phuclh/flysystem-imagekit * -> satisfiable by phuclh/flysystem-imagekit[0.0.1, 0.0.2, 0.0.3, 0.0.4].                                                                             
    - phuclh/flysystem-imagekit[0.0.1, ..., 0.0.4] require illuminate/contracts ^9.0 -> found illuminate/contracts[v9.0.0, ..., v9.52.10] but these were not loaded, likely because it conflicts with another requi
re.                                                                                                                                                                                                                

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

Installation failed, reverting ./composer.json and ./composer.lock to their original content.           
amanshr72 commented 4 months ago

The error message indicates that the package phuclh/flysystem-imagekit has a requirement on illuminate/contracts version ^9.0, but your Laravel application likely has a conflicting version that prevents Composer from resolving the dependencies.

Try using: composer require phuclh/flysystem-imagekit:^2.1 or Update Laravel Version using: