Composer doesn’t allow me to install the latest update of the module. Is there a solution for it?

Composer doesn’t allow me to install the latest update of the module. Is there a solution for it?

      There are two possible reasons why the composer is not fetching the latest version of the module. The first one is that the module package is loaded from caches - composer cannot see the latest available version, so it loads the latest that is available in the cache:

A simple workaround for this is to specify the exact version you need to be installed:  composer require amasty/module-name:^x.x.x

      Still, the composer might throw another error, stating that the required version doesn’t match your minimum stability or that your requirements couldn’t be resolved to an installable set of packages:

      The issue occurs because the package version you’re trying to install requires an update of other dependent packages. An easy fix is to update the dependent packages to the latest available or latest required version, in our case this is amasty/base that needs to be updated to version 1.12.

      Another solution to it is to require the main package (amasty/module-elastic-search) and specify that it should be updated together with all dependencies:

composer require amasty/module-name:^x.x.x --update-with-dependencies

      • Announcements

      • Already Done in Q4'22

        New Amasty services Make sure your site is well-performing with our E-commerce QA testing service. Let our specialists check various elements of your website and get the issues fixed. The service is available for any e-commerce platform (Magento, Shopify,
      • Roadmap | What to expect in Q4'22

        New features and improvements Elastic Search better performance of synonyms; REST API support. Product Labels enhanced extension performance with a lot of products on the page. Blog Pro posts migration from one Magento instance to another; email notifications
      • Already done in Q3'22

        New solutions Our new SaaS tool - Website SEO Health Check. Discover the most severe SEO mistakes which can damage your website. Available as part of Pro and Premium SEO Toolkit. New features and improvements Import and Export NEW we added the possibility
      • What to expect in Q3'22

        New features and improvements Improved Layered Navigation integration with Live Search. Elastic Search improved Relevance Rules functionality. Product Feed an option to add configurable options to product URL; possibility to use Quantity attribute as
      • Already Done in Q2'22

        Brand-new extensions Google Page Speed Optimizer Powered by SpeedSize™ is a synergy of Amasty Google Page Speed Optimizer and SpeedSize, which will help you greatly increase the site performance due to code structure compression and neuroscience media