spatie / crawler

An easy to use, powerful crawler implemented in PHP. Can execute Javascript.

Home Page:https://freek.dev/308-building-a-crawler-in-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't install with Laravel 8.57

morawcik opened this issue · comments

Hi,

When I'm trying install package I'm getting error:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- spatie/crawler[7.0.0, ..., 7.0.1] require guzzlehttp/psr7 ^1.8 -> found guzzlehttp/psr7[1.8.0, 1.8.1, 1.8.2, 1.x-dev] but the package is fixed to 2.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.
- Root composer.json requires spatie/crawler ^7.0 -> satisfiable by spatie/crawler[7.0.0, 7.0.1].

Steps to reproduce:

  1. laravel new test
  2. cd test
  3. composer require spatie/crawler
commented

just do it:

  • composer require guzzlehttp/psr7:1.8
  • composer require spatie/crawler

Same Issue with Laravel v8.6.3.


Problem 1
    - Root composer.json requires laravel/framework ^8.54, found laravel/framework[v8.54.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - fruitcake/laravel-cors is locked to version v2.0.4 and an update of this package was not requested.
    - fruitcake/laravel-cors v2.0.4 requires illuminate/support ^6|^7|^8|^9 -> found illuminate/support[dev-master, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, 9.x-dev (alias of dev-master)] but these were not loaded, likely because it conflicts with another require.
  Problem 3
    - laravel/sanctum is locked to version v2.11.2 and an update of this package was not requested.
    - laravel/sanctum v2.11.2 requires illuminate/database ^6.9|^7.0|^8.0 -> found illuminate/database[v6.10.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 4
    - laravel/tinker is locked to version v2.6.2 and an update of this package was not requested.
    - laravel/tinker v2.6.2 requires illuminate/console ^6.0|^7.0|^8.0 -> found illuminate/console[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 5
    - facade/ignition is locked to version 2.14.1 and an update of this package was not requested.
    - facade/ignition 2.14.1 requires illuminate/support ^7.0|^8.0 -> found illuminate/support[v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 6
    - laravel/sail is locked to version v1.11.0 and an update of this package was not requested.
    - laravel/sail v1.11.0 requires illuminate/console ^8.0|^9.0 -> found illuminate/console[dev-master, v8.0.0, ..., 8.x-dev, 9.x-dev (alias of dev-master)] but these were not loaded, likely because it conflicts with another require.

Same issue with Laravel v8.64.0

  Problem 1
    - Conclusion: don't install spatie/crawler 6.0.2
    - Conclusion: don't install spatie/crawler 6.0.1
    - Conclusion: don't install spatie/crawler 6.0.0
    - Conclusion: remove guzzlehttp/psr7 2.1.0
    - Installation request for spatie/crawler ^6.0 -> satisfiable by spatie/crawler[6.0.0, 6.0.1, 6.0.2, v6.x-dev].
    - Conclusion: don't install guzzlehttp/psr7 2.1.0
    - spatie/crawler v6.x-dev requires guzzlehttp/psr7 ^1.7 -> satisfiable by guzzlehttp/psr7[1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.x-dev].
    - Can only install one of: guzzlehttp/psr7[1.8.3, 2.1.0].
    - Can only install one of: guzzlehttp/psr7[1.x-dev, 2.1.0].
    - Can only install one of: guzzlehttp/psr7[1.7.0, 2.1.0].
    - Can only install one of: guzzlehttp/psr7[1.8.0, 2.1.0].
    - Can only install one of: guzzlehttp/psr7[1.8.1, 2.1.0].
    - Can only install one of: guzzlehttp/psr7[1.8.2, 2.1.0].
    - Installation request for guzzlehttp/psr7 (locked at 2.1.0) -> satisfiable by guzzlehttp/psr7[2.1.0].

@lesaff
you have to downgrade guzzlehttp/psr7 from 2.1.0 to 1.8.3

composer require guzzlehttp/psr7 ^1.8.3
composer require spatie/crawler

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

even composer require guzzlehttp/psr7 ^1.8.3 fails on laravel 9. any help on how i can resolve this issue?