- Issue created by @hockey2112
- Assigned to mahyarss
- Status changed to Needs review
5 months ago 9:38pm 12 June 2024 - π΅π±Poland mahyarss
Hi @hockey2112,
Thank you for reporting this issue. The problem was due to an incorrect module name in the `composer.json` file. We have created a patch to fix this issue.
Please follow the steps below to resolve the installation problem with Composer:
1. Download and apply the patch:
- Download the patch file.
- Apply the patch by running the following command in your module's directory:patch -p1 < 3454241-cannot-install-with-composer.patch
2. Clear Composer cache and reinstall the module:
composer clear-cache composer require 'drupal/animatecss_aos:^1.0'
Additionally, ensure that you have updated the Animate CSS β and AOS JS β modules to their latest versions. After updating, make sure to run any necessary database updates and then clear all caches from the Performance section.
We hope this solution resolves your issue. If you encounter any further problems, please let us know.
Thank you,
Mahyar SBT -
mahyarsbt β
committed 9d98ca1e on 1.0.x
Issue #3454241 by mahyarsbt: Cannot install with Composer
-
mahyarsbt β
committed 9d98ca1e on 1.0.x
- Status changed to Downport
5 months ago 9:58pm 12 June 2024 - π΅π±Poland mahyarss
To test the patch on the dev version, please use the following Composer command:
composer require 'drupal/animatecss_aos:1.0.x-dev@dev'
This will install the latest development version of the animatecss_aos module, which includes the patch.
- πΊπΈUnited States hockey2112
I just tried this command:
composer require 'drupal/animatecss_aos:1.0.x-dev@dev'
And it returns this error:
Your requirements could not be resolved to an installable set of packages. Problem 1 - drupal/animatecss_aos dev-1.0.x requires drupal/animatecss 1.1.x-dev@dev -> found drupal/animatecss[dev-1.1.x, 1.1.x-dev (alias of dev-1.1.x)] but it does not match your minimum-stability. - drupal/animatecss_aos 1.0.x-dev is an alias of drupal/animatecss_aos dev-1.0.x and thus requires it to be installed too. - Root composer.json requires drupal/animatecss_aos 1.0.x-dev@dev -> satisfiable by drupal/animatecss_aos[1.0.x-dev (alias of dev-1.0.x)]. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
- Status changed to Needs review
5 months ago 2:38pm 15 June 2024 - π΅π±Poland mahyarss
Hi @hockey2112,
Thank you for bringing this issue to our attention. The error you are encountering is related to the minimum stability settings in your project's composer.json file (Drupal root), which prevents the installation of the "dev" version of the animatecss module.
To resolve this, please follow these steps:
- Clear Composer cache:
composer clear-cache
- Run the installation command with the
--with-all-dependencies
option:
composer require 'drupal/animatecss_aos:1.0.x-dev@dev' --with-all-dependencies
This command ensures that all necessary dependencies are updated and installed correctly.
Additionally, please verify that your root project's composer.json file includes the appropriate stability settings. It should look something like this:
{ "minimum-stability": "dev", "prefer-stable": true, "require": { "drupal/core": "^8.8 || ^9 || ^10 || ^11", "drupal/animatecss_aos": "1.0.x-dev@dev" } }
These settings will allow Composer to install the dev versions of the required packages while preferring stable versions when available.
If you continue to experience issues, please let me know, and we'll investigate further.
Thank you for your patience and cooperation.
Best regards,
Mahyar SBT - Clear Composer cache:
Hi @mahyarsbt I tried the commmand that you have mentioned and that installed the animatecss_aos module.
Shared snippet for reference.
RTBC ++
Thankyoutest@LAPTOP-6VFKUABC:~/contribution$ lando composer require 'drupal/animatecss_aos:1.0.x-dev@dev' --with-all-dependencies __ __ __ __ ___ _ __ __ __ ______ / / / /__ ___/ /__ _/ /____ / _ |_ _____ _(_) /__ _/ / / /__ / / / / / /_/ / _ \/ _ / _ `/ __/ -_) / __ | |/ / _ `/ / / _ `/ _ \/ / -_)_/_/_/ \____/ .__/\_,_/\_,_/\__/\__/ /_/ |_|___/\_,_/_/_/\_,_/_.__/_/\__(_|_|_) /_/ Updating helps us provide the best support and saves us tons of time Use the link below to get the latest and greatest https://github.com/lando/lando/releases/tag/v3.21.0 Lando is FREE and OPEN SOURCE software that relies on contributions from developers like you! If you like Lando then help us spend more time making, updating and supporting it by contributing at the link below https://github.com/sponsors/lando If you would like to customize the behavior of this message then check out: https://docs.lando.dev/config/releases.html ./composer.json has been updated Running composer update drupal/animatecss_aos --with-all-dependencies Gathering patches for root package. Loading composer repositories with package information Updating dependencies Lock file operations: 4 installs, 18 updates, 0 removals - Upgrading behat/mink (v1.10.0 => v1.11.0) - Upgrading doctrine/deprecations (v1.1.0 => 1.1.3) - Upgrading doctrine/reflection (1.2.3 => 1.2.4) - Locking drupal/animatecss (dev-1.1.x 10df662) - Locking drupal/animatecss_aos (dev-1.0.x 5cd8f06) - Locking drupal/animatecss_ui (1.1.0) - Locking drupal/aosjs (1.0.1) - Upgrading egulias/email-validator (3.2.5 => 3.2.6) - Upgrading pear/pear-core-minimal (v1.10.13 => v1.10.15) - Upgrading psr/http-client (1.0.2 => 1.0.3) - Upgrading symfony/css-selector (v5.4.21 => v5.4.40) - Upgrading symfony/deprecation-contracts (v2.5.2 => v2.5.3) - Upgrading symfony/finder (v5.4.21 => v5.4.40) - Upgrading symfony/http-client-contracts (v2.5.2 => v2.5.3) - Upgrading symfony/http-kernel (v4.4.50 => v4.4.51) - Upgrading symfony/polyfill-php72 (v1.27.0 => v1.29.0) - Upgrading symfony/polyfill-php73 (v1.27.0 => v1.29.0) - Upgrading symfony/polyfill-php81 (v1.27.0 => v1.29.0) - Upgrading symfony/service-contracts (v2.5.2 => v2.5.3) - Upgrading symfony/translation-contracts (v2.5.2 => v2.5.3) - Upgrading symfony/var-dumper (v5.4.24 => v5.4.40) - Upgrading twig/twig (v2.15.5 => v2.15.6) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 5 installs, 18 updates, 0 removals - Downloading symfony/polyfill-php72 (v1.29.0) - Downloading symfony/css-selector (v5.4.40) - Downloading behat/mink (v1.11.0) - Downloading symfony/deprecation-contracts (v2.5.3) - Downloading symfony/finder (v5.4.40) - Downloading symfony/polyfill-php81 (v1.29.0) - Downloading symfony/translation-contracts (v2.5.3) - Downloading symfony/service-contracts (v2.5.3) - Downloading symfony/polyfill-php73 (v1.29.0) - Downloading doctrine/deprecations (1.1.3) - Downloading twig/twig (v2.15.6) - Downloading symfony/http-client-contracts (v2.5.3) - Downloading symfony/var-dumper (v5.4.40) - Downloading symfony/http-kernel (v4.4.51) - Downloading pear/pear-core-minimal (v1.10.15) - Downloading egulias/email-validator (3.2.6) - Downloading doctrine/reflection (1.2.4) - Downloading drupal/aosjs (1.0.1) - Syncing drupal/animatecss (dev-1.1.x 10df662) into cache - Syncing drupal/animatecss_aos (dev-1.0.x 5cd8f06) into cache - Downloading psr/http-client (1.0.3) Gathering patches for root package. Gathering patches for dependencies. This might take a minute. - Upgrading symfony/polyfill-php72 (v1.27.0 => v1.29.0): Extracting archive - Upgrading symfony/css-selector (v5.4.21 => v5.4.40): Extracting archive - Upgrading behat/mink (v1.10.0 => v1.11.0): Extracting archive - Upgrading symfony/deprecation-contracts (v2.5.2 => v2.5.3): Extracting archive - Upgrading symfony/finder (v5.4.21 => v5.4.40): Extracting archive - Upgrading symfony/polyfill-php81 (v1.27.0 => v1.29.0): Extracting archive - Upgrading symfony/translation-contracts (v2.5.2 => v2.5.3): Extracting archive - Upgrading symfony/service-contracts (v2.5.2 => v2.5.3): Extracting archive - Upgrading symfony/polyfill-php73 (v1.27.0 => v1.29.0): Extracting archive - Upgrading doctrine/deprecations (v1.1.0 => 1.1.3): Extracting archive - Upgrading twig/twig (v2.15.5 => v2.15.6): Extracting archive - Upgrading symfony/http-client-contracts (v2.5.2 => v2.5.3): Extracting archive - Upgrading symfony/var-dumper (v5.4.24 => v5.4.40): Extracting archive - Upgrading symfony/http-kernel (v4.4.50 => v4.4.51): Extracting archive - Upgrading pear/pear-core-minimal (v1.10.13 => v1.10.15): Extracting archive - Upgrading egulias/email-validator (3.2.5 => 3.2.6): Extracting archive - Upgrading doctrine/reflection (1.2.3 => 1.2.4): Extracting archive - Installing drupal/aosjs (1.0.1): Extracting archive - Installing drupal/animatecss (dev-1.1.x 10df662): Cloning 10df6625d7 from cache - Installing drupal/animatecss_ui (1.1.0) - Installing drupal/animatecss_aos (dev-1.0.x 5cd8f06): Cloning 5cd8f066ef from cache - Installing drupal/dempo (4.0.7): Extracting archive - Upgrading psr/http-client (1.0.2 => 1.0.3): Extracting archive Cleaning: symfony/css-selector Cleaning: behat/mink Cleaning: symfony/finder Cleaning: twig/twig Cleaning: symfony/var-dumper Cleaning: symfony/http-kernel Cleaning: pear/pear-core-minimal Cleaning: egulias/email-validator require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]... test@LAPTOP-6VFKUABC:~/contribution$