Hi, I'm on my first steps with Laravel and not a Terminal expert at all, as well as applications in general. I'm just a php/js programmer.
So laravel new testsite gave me an output of this type:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- This package requires php ^7.1.3 but your PHP version (5.6.30) does not satisfy that requirement.
Problem 2
- Installation request for doctrine/inflector v1.3.0 -> satisfiable by doctrine/inflector[v1.3.0].
- doctrine/inflector v1.3.0 requires php ^7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
Problem 3
- Installation request for dragonmantank/cron-expression v2.2.0 -> satisfiable by dragonmantank/cron-expression[v2.2.0].
- dragonmantank/cron-expression v2.2.0 requires php >=7.0.0 -> your PHP version (5.6.30) does not satisfy that requirement.
Problem 4
[etc... almost 40 problems]
Therefore, the first thing I gues I should do is to update my php version.
My question is: is it safe for me to update my php version?
Should I simply brew install [email protected]?
Then I was able to install Laravel without any issue.
As a side note: strangely enough, when I was trying to use Brew, I could't update Brew version. No way. Brew update just keepd freezing and do nothing.