Installing Libraries Don't Meet Minimum Stability Requirements

Created on 3 June 2024, 7 months ago
Updated 7 August 2024, 4 months ago

Hello, I'm following the README file and have installed Views Slideshow plus enabled the 2 modules. I'm now at the step of using Composer to add the libraries. I already have the wikimedia/composer-merge-plugin, so it seems like I can just make the same edits in my "composer.json" file as in the README example.

So I did that and then ran composer require wikimedia/composer-merge-plugin

And that produced this result in Composer:

./composer.json has been updated
Running composer update wikimedia/composer-merge-plugin
Gathering patches for root package.
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 douglascrockford/json2 *, found douglascrockford/json2[dev-master] but it does not match your minimum-stability.
  Problem 2
    - Root composer.json requires malsup/jquery.cycle *, found malsup/jquery.cycle[3.0.3-a] but it does not match your minimum-stability.
  Problem 3
    - Root composer.json requires tobia/jquery.pause *, found tobia/jquery.pause[dev-master] but it does not match your minimum-stability.

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

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

Right now, in my "composer.json" file, I have "minimum-stability": "stable", It's been suggested that I change this, but wanted to get your input on how to proceed first. Is it safe to install these libraries and I should change the stability requirement to do so, or should something else be done instead?

πŸ’¬ Support request
Status

Active

Version

5.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States jimmb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jimmb
  • πŸ‡ΊπŸ‡ΈUnited States jimmb

    Also, from the Composer info, I tried running composer require wikimedia/composer-merge-plugin:*. That output this:

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires douglascrockford/json2 *, found douglascrockford/json2[dev-master] but it does not match your minimum-stability.
      Problem 2
        - Root composer.json requires malsup/jquery.cycle *, found malsup/jquery.cycle[3.0.3-a] but it does not match your minimum-stability.
      Problem 3
        - Root composer.json requires tobia/jquery.pause *, found tobia/jquery.pause[dev-master] but it does not match your minimum-stability.

    I can't be the first person having this problem, so I'm sure a solution exists and we just need to be made aware of it.

  • πŸ‡ΊπŸ‡ΈUnited States jimmb
  • πŸ‡ΊπŸ‡ΈUnited States jimmb

    Well, I found that putting the "composer.json" stability at "dev" was the only way to get these libraries to install. It would be nice to include that in the documentation. And since it's apparently undesirable to have a project with the stability at "dev", it'd be even better to include an example command that installs just those libraries at "dev" while leaving "stable" in place for everything else. That would really be good to know how to do from your README.

    Also, I found that running composer require wikimedia/composer-merge-plugin only installs 3 of the 4 libraries that are needed. For me at least, jQuery HoverIntent was not installed. So the documentation should also include this info. and provide a recommended way to install that.

    And since then it seems like you need to do some manual installation anyway, maybe it's better to just install everything manually using the drush commands in the README? That way, presumably, the default stability could remain at "stable.

    So again, the documentation should really be updated to help the average low-code user still be able to use this module without having to spend days trying to figure all this stuff out (and then still not really know what to do).

  • πŸ‡¬πŸ‡§United Kingdom nigelwhite Marsden

    Yes, that would be helpful. If some kind person who has got through this step could detail a solution that would be great.

  • imagine needing to install jquery to get a slider to work in 2024. Oh right we're still using drupal.

Production build 0.71.5 2024