I use Magento 2 and I am trying to install SMTP extension from Marketplace. I got this error:
Command "update" failed: Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package amasty/base could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Any help please?
Hello @ovidiu eduard_cazacu,
Please follow below steps to SMTP extension
cd path_to_the_magento_root_directoryThen run the following command
composer require kiwicommerce/module-enhanced-smtpMake sure that composer finished the installation without errors
cd path_to_the_magento_root_directory
After install the extension, run the following command
php bin/magento module:enable KiwiCommerce_EnhancedSMTP php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento cache:flush
Extension document Link: https://kiwicommerce.co.uk/docs/enhanced-smtp/
Magento Marketplace link: https://marketplace.magento.com/kiwicommerce-module-enhanced-smtp.html
Let me know if you get any issue.
--
If my answer is useful, please Accept as Solution & give Kudos
I got the error. When I run in ssh composer diagnose, I get this:
The version field is present, it is recommended to leave it out if the package is published on Packagist.
License ["Commercial"] is not a valid SPDX license identifier, see https://spdx.org/licenses/ if you use an open license.
If the software is closed-source, you may use "proprietary" as license.
require.amasty/base : unbound version constraints (*) should be avoided
I have a composer.json with this code:
{
"name": "amasty/finder",
"description": "Product Parts Finder By Amasty",
"require": {
"php": "~5.6.5|7.0.2|7.0.4|~7.0.6|~7.1.0",
"amasty/base": "*",
"mageplaza/module-smtp": "^1.2"
},
"type": "magento2-module",
"version": "1.1.1",
"license": [
"Commercial"
],
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"Amasty\\Finder\\": ""
}
}
}
Hello @ovidiu eduard_cazacu
Have you checked my answer?
Thank you.
--
If my answer is useful, please Accept as Solution & give Kudos