Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when trying to install library in laravel 11 #90

Open
ancosta1995 opened this issue Jan 22, 2025 · 0 comments
Open

error when trying to install library in laravel 11 #90

ancosta1995 opened this issue Jan 22, 2025 · 0 comments

Comments

@ancosta1995
Copy link

I'm trying to install the library in laravel 11 but it's giving an error, from my investigations it has to do with the guzzle version, but laravel 11 doesn't allow me to use the version used by the library.

composer require nicklasw/instagram-api --with-all-dependencies
./composer.json has been updated
Running composer update nicklasw/instagram-api --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- nicklasw/instagram-api[v0.10.1, ..., 0.10.6] require tebru/gson-php ^0.7 -> satisfiable by tebru/gson-php[v0.7.0, ..., v0.7.5].
- nicklasw/instagram-api[v0.7.3, ..., v0.10.0] require guzzlehttp/guzzle ^6.2 -> found guzzlehttp/guzzle[6.2.0, ..., 6.5.8] but these were not loaded, likely because it conflicts with another require.
- tebru/gson-php[v0.7.0, ..., v0.7.3] require phpdocumentor/reflection-docblock ^3.2.3|^4.0.1 -> found phpdocumentor/reflection-docblock[3.2.3, 3.3.0, 3.3.2, 4.0.1, ..., 4.3.4] but these were not loaded, likely because it conflicts with another require.
- tebru/gson-php[v0.7.4, ..., v0.7.5] require psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires nicklasw/instagram-api * -> satisfiable by nicklasw/instagram-api[v0.7.3, ..., 0.10.6].

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant