How to fix the «The requested package mage2.pro/<name> could not be found in any version» issue

As the step 6 states, you should place the config.json file to the COMPOSER_HOME directory, not to the “root” (?!) directory.