composer require 报错
Installation failed, reverting ./composer.json to its original content.
cache:clear [–no-warmup] [–no-optional-warmers] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-e|–env ENV] [–no-debug] [–]
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
An error occurred when executing the “”cache:clear –no-warmup”” command:
[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings. You are *required
*
to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those metho
ds
and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the time
zo
ne ‘UTC’ for now, but please set date.timezone to select your timezone.