postaddictme / instagram-php-scraper

Get account information, photos, videos, stories and comments.
https://packagist.org/packages/raiym/instagram-php-scraper
MIT License
3.1k stars 800 forks source link

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

Open w74anheda opened 2 years ago

w74anheda commented 2 years ago

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

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

kingkool68 commented 2 years ago

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.

soroshzzz26 commented 2 years ago

same issue here

siddharthghedia commented 2 years ago

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

mybytecode commented 2 years ago

Any update on this, still facing same issue.

kingkool68 commented 2 years ago

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

hamza-topo commented 1 year ago

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