I can't Install Magento 2.2.6 via composer on macOS High Sierra + I'm use MAMP Pro and getting some problems :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for magento/product-community-edition 2.2.6 -> satisfiable by magento/product-community-edition[2.2.6].
- magento/product-community-edition 2.2.6 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
This is extensions from php.ini :
; Extensions
MAMP_apc_MAMPextension=apcu.so
MAMP_apc_MAMPextension=apc.so
extension=imap.so
extension=gettext.so
extension=mcrypt.so
extension=pgsql.so
extension=pdo_pgsql.so
MAMP_Imagick_MAMPextension=imagick.so
MAMP_Tidy_MAMPextension=tidy.so
MAMP_Oauth_MAMPextension=oauth.so
MAMP_Igbinary_MAMPextension=igbinary.so
MAMP_Memcached_MAMPextension=memcached.so
MAMP_Redis_MAMPextension=redis.so
;extension=uploadprogress.so
;extension=yaml.so
Also I'm using next commands :
php -m | grep mcrypt
mcrypt
My php version - 7.0.31 Apache - Apache/2.4.33 (Unix)