webman下执行 composer run-script post-package-install

hk2018

问题描述

composer是2.1.6的

[root@635ed185d2dc webman]# composer run-script post-package-install
> support\Plugin::install

Fatal error: Uncaught Error: Call to undefined method Composer\Script\Event::getOperation() in /data/www/webman/webman/vendor/workerman/webman-framework/src/support/Plugin.php:14
Stack trace:
#0 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(377): support\Plugin::install(Object(Composer\Script\Event))
#1 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(236): Composer\EventDispatcher\EventDispatcher->executeEventPhpScript('support\\Plugin', 'install', Object(Composer\Script\Event))
#2 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(117): Composer\EventDispatcher\EventDispatcher->doDispatch(Object(Composer\Script\Event))
#3 phar:///usr/local/bin/composer/src/Composer/Command/RunScriptCommand.php(109): Composer\EventDispatcher\EventDispatcher->dispatchScript('post-package-in...', true, Array)
#4 phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php(245): Composer\Command\RunScriptCommand->execute(Object(Symfony in /data/www/webman/webman/vendor/workerman/webman-framework/src/support/Plugin.php on line 14

这个不能单独执行吗?

705 0 0
0个回答

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