I’m trying to install the module via composer, but the package is not found. How to resolve it?

I’m trying to install the module via composer, but the package is not found. How to resolve it?

      Composer is the dependency manager that allows you easily download the required files on your server. The files are located on a remote server, or a repository, that you need to add to the list of “known” ones and authenticate to using the username and password. During the process of installation, the composer checks all the available repositories and finds the package with the specified name. In case the package doesn’t belong to any of the known repositories or there is no such a package in the known repositories, composer throws the following error:

[InvalidArgumentException]
Could not find a matching version of package amasty/color-swatches-pro. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (alpha)


      What you can do to resolve this:
      
      1. Check if the repository you’re trying to reach is listed in composer.json file, under ‘repositories’ section:



      2. To make sure you are trying to reach the correct repository, you may run the following command: composer show -a amasty/* It will show all available modules from Amasty. If the repository has been added correctly, the extension in question will be displayed in the list: 



      3. Make sure that you’re requesting the module using the same account that was used for the purchase. The username and password that you use for the authentication to composer repository should coincide with the public and private keys in your customer account in the Products tab:


      
      4. Flush composer caches with command composer clearcache

      • Announcements

      • Already Done in Q1'23

        New features and improvements Order Attributes v3.8.0 NEW now Order Attributes are placed on the PayPal Review Page; we added compatibility with Hyvä Theme for the module. You can find package for installing in composer suggest (Note: the compatibility
      • Roadmap | What to expect in Q1'23

        New features and improvements Improved Layered Navigation generate SEO-friendly URLs for multi-select Category filter; better speed performance of the Apply filters button; improve Category list load time. Special Promotions Pro optimize data types in
      • 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