直接使用命令`composer create-project phpdish/phpdish -s dev -vvv`报错

In VariableNode.php line 85:

The path "fos_user.from_email.address" cannot contain an empty value, but g ot null.

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception Reading ./composer.json Loading config file /Users/hainuo/.composer/config.json Loading config file /Users/hainuo/.composer/auth.json Loading config file ./composer.json Reading /Users/hainuo/.composer/composer.json Loading config file /Users/hainuo/.composer/config.json Loading config file /Users/hainuo/.composer/auth.json Loading config file /Users/hainuo/.composer/composer.json Loading config file /Users/hainuo/.composer/auth.json Reading /Users/hainuo/.composer/auth.json Reading /Users/hainuo/Sites/phpdish/vendor/composer/installed.json

[RuntimeException] An error occurred when executing the "'cache:clear --no-warmup'" command:

In VariableNode.php line 85:

The path "fos_user.from_email.address" cannot contain an empty value, but

g ot null.

Exception trace: () at /Users/hainuo/Sites/phpdish/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:293 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeCommand() at /Users/hainuo/Sites/phpdish/vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:143 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:292 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:215 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:81 Composer\EventDispatcher\EventDispatcher->dispatch() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:195 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:96 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/Installer.php:322 Composer\Installer->run() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/Command/CreateProjectCommand.php:193 Composer\Command\CreateProjectCommand->installProject() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/Command/CreateProjectCommand.php:145 Composer\Command\CreateProjectCommand->execute() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/vendor/symfony/console/Command/Command.php:242 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/vendor/symfony/console/Application.php:843 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/vendor/symfony/console/Application.php:193 Symfony\Component\Console\Application->doRun() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/Console/Application.php:251 Composer\Console\Application->doRun() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/vendor/symfony/console/Application.php:117 Symfony\Component\Console\Application->run() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/src/Composer/Console/Application.php:100 Composer\Console\Application->run() at phar:///usr/local/Cellar/composer/1.6.4/bin/composer/bin/composer:58 require() at /usr/local/Cellar/composer/1.6.4/bin/composer:24

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []

1 回复
  • hainuo 22天前

    发现原因了 是因为我定义mailer_user 为 null 的缘故

回复