I got a bit tired of this error, it's a bit of nightmare to setup Magento2 on OSX using the MAMP PRO PHP in CLI. As composer is not able to pick the MAMP php but instead is loading the native one (if u're in a hurry go to end of article, to update 2,…
PHP extension mcrypt, intl, … missing as composer uses default environment
