Add the --ignore-platform-req=composer-plugin-api
flag to your Composer command, e.g.:
composer2 require magepal/magento2-gmailsmtpapp:* --ignore-platform-req=composer-plugin-api
Add the --ignore-platform-req=composer-plugin-api
flag to your Composer command, e.g.:
composer2 require magepal/magento2-gmailsmtpapp:* --ignore-platform-req=composer-plugin-api