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

windows_1122334

问题描述

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

程序代码

php webman app-plugin:create foo

报错信息

截图

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

php webman app-plugin:create foo

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

下图是版本信息
截图

261 2 0
2个回答

walkor 打赏

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

  • windows_1122334 2025-02-16

    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
  • walkor 2025-02-17

    我这没复现

  • liziyu 2025-02-17

    不管它了,反正也不影响使用。

  • liziyu 2025-02-27

    回来补下解决办法:删除项目下vendor与composer.lock后,重新 composer install 解决了。

×
🔝