Sleepless night but I've solved it!
I reinstalled MAMP then edited my .bash_profile script, restarted the terminal.
alias php='/Applications/MAMP/bin/php/php5.4.26/bin/php'
Then I added MAMP to the Path by using this in my .bash_profile, again restarted terminal.
export PATH="/Applications/MAMP/bin/php/php5.4.26/bin:$PATH"
Hit my terminal with the magical one liner:
composer create-project laravel/laravel laravel-demo
and hey presto... finally no error codes! As with many things coding - persistence is key!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community