title: Can't install module using composer on Magento 2.1
body: <p>I am trying to install <strong>M2ePro</strong> module on my <strong>Magento ver. 2.1.8</strong> application using composer and getting this error:</p>
  
  <pre><code>[http]$ php-7.0 /usr/local/bin/composer require m2e/ebay-amazon-magento2
  </code></pre>
  
  <blockquote>
    <p>Could not find a matching version of package m2e/ebay-amazon-magento2.
    Check the package spelling, your version constraint and that the
    package is available in a stability which matches your
    minimum-stability (alpha).</p>
  </blockquote>
  
  <p>The spelling of the package is correct, I have tried defining the version of the module (The only one available is 1.3.2):</p>
  
  <pre><code>[http]$ php-7.0 /usr/local/bin/composer require m2e/ebay-amazon-magento2:1.3.2
  </code></pre>
  
  <p>However get the same error so I believe stability of this module is "<code>Beta</code>" and I have "<code>minimum-stability (alpha)</code>" set so beta modules should be installed with no problems.?</p>
  
  <p>I looked for solution in composer docs but could find anything about installing beta: <a href="https://getcomposer.org/doc/03-cli.md#require" rel="nofollow noreferrer">https://getcomposer.org/doc/03-cli.md#require</a></p>
  
  <p>Or was I looking in the wrong place?</p>
  
  <p>I managed to successfully install the module on my development site and didn't receive this error so I thought it might be due to the fact that my Magento application was in the "Production" mode but setting the mode to "Developer" did not solve my problem.</p>
  
  <p>UPDATE:</p>
  
  <p>I just found this thread: <a href="https://magento.stackexchange.com/questions/114393/error-in-using-composer-to-install-a-module-in-magento-2-0">https://magento.stackexchange.com/questions/114393/error-in-using-composer-to-install-a-module-in-magento-2-0</a>. The answer to this question is that you need to  define the package as repository. The package is from marketplace and this is content of my composer.json:</p>
  
  <pre><code>"minimum-stability": "alpha",
  "prefer-stable": true,
  "repositories": [
      {
          "type": "composer",
          "url": "https://repo.magento.com/"
      }       
  ],
  </code></pre>
  
  <p>I have previously installed modules from marketplace using composer with no problems.</p>