【发布时间】:2020-05-25 15:07:13
【问题描述】:
目前,当我尝试更新项目的依赖项时,我遇到了构建过程因错误而失败的问题:Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255。
只有当我尝试将 sentry/laravel 1.5.0 包更新到 1.6.1 版本时才会出现此错误。我没有其他依赖项的问题。我尝试过与Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255 中相同的操作,但没有任何解决方案对我有帮助。
完整回复:
#!/bin/bash -eo pipefail
composer install -n --prefer-dist --ignore-platform-reqs
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use
laminas/laminas-diactoros instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned
with error code 255
Exited with code exit status 255
当然,我可以继续使用 1.5.0 版本,但我更喜欢让我的依赖项保持最新。有什么我可能想念的吗?
提前感谢您的帮助。
【问题讨论】:
-
尝试清除缓存...
php artisan clear -
我通过删除缓存文件来做到这一点,但这似乎不起作用。