webman/console 命令不存在

snow

问题描述

php版本 8.0.2 "workerman/webman-framework": "^1.5.0"
webman/console错误,这个错误我重复引入就会消失
当我自己手动在config/plugin/webman/console/app.php后执行
php webman phar:pack webman 命令不存在

PS D:\phpstudy_pro\WWW\wallet-z\wallet-admin-webman> composer require webman/console
./composer.json has been updated
Running composer update webman/console
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals

  • Locking webman/console (v1.2.32)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 1 install, 0 updates, 0 removals
  • Installing webman/console (v1.2.32): Extracting archive

    support\Plugin::install
    Script support\Plugin::install handling the post-package-install event terminated with an exception

In Install.php line 21:

copy(): The second argument to copy() function cannot be a directory

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

程序代码

composer require webman/console

#### 报错信息

Could not open input file: webman

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

这里粘贴截图

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

window10
php 8.0.2
composer 2.5.5

797 1 0
1个回答

walkor

看下项目根目录下是不是有个webman文件夹,删掉

  • snow 2023-04-07

    是的 是有的 删掉了 但是删掉后 compose没有创建对应的文件

  • walkor 2023-04-07

    composer remove webman/console 后重新装

  • snow 2023-04-07

    他下面还有
    event/app.php event/bootstarp.php event/command.php 文件 可以不要吗?

  • walkor 2023-04-07

    这些不是框架的文件,不知道你是哪来的

  • snow 2023-04-07

    是的解决了 感谢大大

年代过于久远,无法发表回答
🔝