instagram-php-scraper icon indicating copy to clipboard operation
instagram-php-scraper copied to clipboard

error when i try install instagram-php-scraper with composer

Open w74anheda opened this issue 1 year ago • 6 comments

hi, i trying to install instagram-php-scraper with composer but when run this command: composer require raiym/instagram-php-scraper phpfastcache/phpfastcache throw bellow error:

Info from https://repo.packagist.org: #StandWithUkraine Using version ^0.12.5 for raiym/instagram-php-scraper Using version ^9.1 for phpfastcache/phpfastcache ./composer.json has been updated Running composer update raiym/instagram-php-scraper phpfastcache/phpfastcache 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 raiym/instagram-php-scraper ^0.12.5 -> satisfiable by raiym/instagram-php-scraper[v0.12.5]. - raiym/instagram-php-scraper v0.12.5 requires psr/simple-cache ~1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but the package is fixed to 3.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require raiym/instagram-php-scraper:*" to figure out if any version is installable, or "composer require raiym/instagram-php-scraper:^2.1" if you know which you need.

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

how can i fix it ? Screenshot from 2022-07-11 13-27-03

laravel version ^9.11 php version ^8.0.2

w74anheda avatar Jul 11 '22 09:07 w74anheda

Composer is telling you exactly what you need to do.

Try

composer require raiym/instagram-php-scraper phpfastcache/phpfastcache --with-all-dependencies

to allow upgrades, downgrades and removals for packages currently locked to specific versions.

If that doesn't work try

composer require raiym/instagram-php-scraper phpfastcache/phpfastcache:*

to figure out if any version is installable.

kingkool68 avatar Jul 18 '22 02:07 kingkool68

same issue here

soroshzzz26 avatar Jul 19 '22 08:07 soroshzzz26

Composer is telling you exactly what you need to do.

Try

composer require raiym/instagram-php-scraper phpfastcache/phpfastcache --with-all-dependencies

to allow upgrades, downgrades and removals for packages currently locked to specific versions.

If that doesn't work try

composer require raiym/instagram-php-scraper phpfastcache/phpfastcache:*

to figure out if any version is installable.

Doesn't work

siddharthghedia avatar Aug 07 '22 06:08 siddharthghedia

Any update on this, still facing same issue.

mybytecode avatar Aug 27 '22 08:08 mybytecode

Try composer require raiym/instagram-php-scraper:* phpfastcache/phpfastcache:* which will tell Composer to try and find any version with compatible dependencies.

kingkool68 avatar Aug 28 '22 13:08 kingkool68

i fixed that by adding the flag -W to allow upgrades, downgrades and removals for other packages

composer require raiym/instagram-php-scraper --with-all-dependencies

hamza-topo avatar Jan 25 '23 12:01 hamza-topo