BitBagCommerce / SyliusVueStorefrontPlugin

Sylius plugin integrating Sylius with Vue Storefront
45 stars 24 forks source link

Can not install on fresh Sylius setup (1.8.2) #118

Closed johnnypea closed 3 years ago

johnnypea commented 3 years ago

composer create-project sylius/sylius-standard

❯ symfony composer require bitbag/vuestorefront-plugin:v2.1.0
./composer.json has been updated
Running composer update bitbag/vuestorefront-plugin
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 bitbag/vuestorefront-plugin v2.1.0 -> satisfiable by bitbag/vuestorefront-plugin[v2.1.0].
    - bitbag/vuestorefront-plugin v2.1.0 requires symfony/serializer ^5.0 -> found symfony/serializer[v5.0.0, ..., v5.1.8] but the package is fixed to v4.4.16 (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.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
unable to run /usr/local/bin/composer require bitbag/vuestorefront-plugin:v2.1.0: exit status 2
❯ symfony composer require -W bitbag/vuestorefront-plugin:v2.1.0
./composer.json has been updated
Running composer update bitbag/vuestorefront-plugin --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
    - friends-of-behat/mink is locked to version v1.8.0 and an update of this package was not requested.
    - friends-of-behat/mink v1.8.0 requires symfony/css-selector ^3.4|^4.4|^5.0 -> found symfony/css-selector[v3.4.0, ..., v3.4.47, v4.4.0, ..., v4.4.16, v5.0.0, ..., v5.1.8] but it conflicts with another require.
  Problem 2
    - friends-of-behat/mink v1.8.0 requires symfony/css-selector ^3.4|^4.4|^5.0 -> found symfony/css-selector[v3.4.0, ..., v3.4.47, v4.4.0, ..., v4.4.16, v5.0.0, ..., v5.1.8] but it conflicts with another require.
    - friends-of-behat/page-object-extension v0.3.2 requires behat/mink ^1.7 -> satisfiable by friends-of-behat/mink[v1.8.0].
    - friends-of-behat/page-object-extension is locked to version v0.3.2 and an update of this package was not requested.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
unable to run /usr/local/bin/composer require -W bitbag/vuestorefront-plugin:v2.1.0: exit status 2
azamalvi commented 3 years ago

Add this line to your composer.json and update it

........
"symfony/serializer": "^5.0",
........
raouf45 commented 3 years ago

Hello , i have the same issue i'm adding this line "symfony/serializer": "^5.0", composer update Problem 1

silcki commented 3 years ago

@patrick477 @Codeweld @senghe guys, please, solve this issue

Codeweld commented 3 years ago

It's fixed in a new release. @silcki thank you for your contribution.