postaddictme / instagram-php-scraper

Get account information, photos, videos, stories and comments.

Home Page:https://packagist.org/packages/raiym/instagram-php-scraper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

w74anheda opened this issue · 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

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.

same issue here

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

Any update on this, still facing same issue.

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

commented

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