The answer is in your question! you shared link how to install B2B in magento commerce.
In documentation there mentioned If you get an error when trying to install the B2B module for local instance of Magento Commerce (for example:)
[InvalidArgumentException] Could not find a matching version of package magento/extension-b2b. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).
The same error you showing in your question and also give solution for it.
Create an auth.json file in the Magento root directory and add the following code. using the actual values of you public_key
and private_key
for username and password:
{
"http-basic": {
"repo.magento.com": {
"username": "<public_key>",
"password": "<private_key>"
}
}
}
When prompted, enter your authentication keys. Your public key is your username; your private key is your password. If you have stored your public and private keys in auth.json, you won’t be asked to enter them here.
Run the following commands after Composer finishes updating modules:
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
Important
After completing the installation, you must follow the post-installation steps.
For your knowledge
There are different process to install B2B module in Magento commerce
and Magento commerce cloud
please refer below process to install. please follow below given documentation link.
- For Magento commerce refer this Link
- For Magento commerce cloud refer Link
I hope it helps!