php 8.1.8
Composer version 2.3.10 2022-07-13 15:48:23
运行composer require webman/console后报如下错误
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] [--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>...]
php 8.1.8 Composer version 2.3.10 2022-07-13 15:48:23
运行
composer require webman/console
后报如下错误