Hi there,
I'm using MAMP on MacOSX El Capitan
I've set up a new laravel project and I'm trying to run composer install. However I'm getting the following errors:
"Your requirements could not be resolved to an installable set of packages."
"This package requires php >=5.6.4 but your PHP version (5.5.30) does not satisfy that requirement."
But:
loquelas-iMac:laravel-project simonclegg$ php -v
PHP 7.0.12 (cli) (built: Oct 24 2016 18:49:11) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
I'm not sure if this is related but I'm getting a blank page when I run a new laravel project an the error log is giving me:
[10-Nov-2016 21:57:37 Australia/Sydney] PHP Warning: require(/Users/loquela/laravel-project/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /Users/simonclegg/laravel-project/bootstrap/autoload.php on line 17
[10-Nov-2016 21:57:37 Australia/Sydney] PHP Fatal error: require(): Failed opening required '/Users/loquela/laravel-project/bootstrap/../vendor/autoload.php' (include_path='.:/Applications/MAMP/bin/php/php7.0.12/lib/php') in /Users/loquela/laravel-project/bootstrap/autoload.php on line 17
So there is a difference between the PHP version you run in your console (CLI) and the PHP version MAMP is using (CGI). You probably have installed php locally and also installed MAMP. This means your PC has two PHP versions.