php-phantomjs icon indicating copy to clipboard operation
php-phantomjs copied to clipboard

Can't install PHP PhantomJS for Laravel

Open treble18 opened this issue 2 years ago • 2 comments

Hi, I tried to install PHP PhantomJS for my Laravel project, but I encountered an issue while trying to install it. I typed composer require -W jonnyw/php-phantomjs and here's how it turns out:

Using version ^4.6 for jonnyw/php-phantomjs
./composer.json has been updated
Running composer update jonnyw/php-phantomjs --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
    - jonnyw/php-phantomjs[v4.6.0, ..., v4.6.1] require twig/twig ~1.16 -> satisfiable by twig/twig[v1.16.0, ..., 1.x-dev].
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.44.5.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.44.4.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.44.3.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.44.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.44.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.44.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.43.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.43.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.42.5.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.42.4.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.42.3.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.42.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.42.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.42.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.41.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.40.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.40.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.39.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.39.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.38.4.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.38.3.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.38.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.38.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.38.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.37.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.37.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.36.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.35.4.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.35.3.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.35.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.35.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.35.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.34.4.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.34.3.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.34.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.34.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.34.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.33.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.33.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.33.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.32.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.31.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.30.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.29.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.28.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.28.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.28.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.27.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.26.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.26.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.25.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.24.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.24.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.24.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.23.3.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.23.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.23.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.23.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.22.3.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.22.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.22.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.22.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.21.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.21.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.21.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.20.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.19.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.18.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.18.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.18.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.17.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.16.3.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.16.2.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.16.1.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig v1.16.0.
    - symfony/http-kernel v5.3.2 conflicts with twig/twig 1.x-dev.
    - fruitcake/laravel-cors v2.0.4 requires symfony/http-kernel ^4.3.4|^5 -> satisfiable by symfony/http-kernel[v5.3.2].
    - fruitcake/laravel-cors is locked to version v2.0.4 and an update of this package was not requested.
    - Root composer.json requires jonnyw/php-phantomjs ^4.6 -> satisfiable by jonnyw/php-phantomjs[v4.6.0, v4.6.1].


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

Can anyone help me fix this? I've tried changing the twig requirements for the others, the issue was resolved but more problems popped up. Any help will be appreciated. Thanks.

treble18 avatar Oct 10 '21 09:10 treble18

same to you

fengwuxin avatar Mar 28 '22 02:03 fengwuxin

try this : composer require neokyuubi/php-phantomjs:dev-master

neokyuubi avatar Apr 18 '22 03:04 neokyuubi