php webman app-plugin:create创建应用时,报错

问题描述

使用 php webman app-plugin:create appName 创建应用时,报错

程序代码

php webman app-plugin:create foo

报错信息

截图

截图报错信息里报错文件相关代码

php webman app-plugin:create foo

操作系统及workerman/webman等框架组件具体版本

下图是版本信息
截图

123 2 0
2个回答

webman/event版本太老了,composer require webman/event 升级下

  • windows_1122334 5天前

    composer 的taobao镜像最高只到1.0.4,我换了官方镜像,升级到了1.0.5就可以了

liziyu

执行 php webman version 也会出错:

PHP Fatal error:  Uncaught Symfony\Component\Console\Exception\LogicException: The command defined in "Webman\Event\EventListCommand" cannot have an empty name. in /Users/liziyu/website/huashi/vendor/symfony/console/Application.php:557
Stack trace:
#0 /Users/liziyu/website/huashi/webman(25): Symfony\Component\Console\Application->add(Object(Webman\Event\EventListCommand))
#1 {main}
  thrown in /Users/liziyu/website/huashi/vendor/symfony/console/Application.php on line 557

Fatal error: Uncaught Symfony\Component\Console\Exception\LogicException: The command defined in "Webman\Event\EventListCommand" cannot have an empty name. in /Users/liziyu/website/huashi/vendor/symfony/console/Application.php:557
Stack trace:
#0 /Users/liziyu/website/huashi/webman(25): Symfony\Component\Console\Application->add(Object(Webman\Event\EventListCommand))
#1 {main}
  thrown in /Users/liziyu/website/huashi/vendor/symfony/console/Application.php on line 557
×
🔝