脚本@php artisan软件包:发现处理返回的错误代码为255的post-autoload-dump事件 [英] Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

查看:699
本文介绍了脚本@php artisan软件包:发现处理返回的错误代码为255的post-autoload-dump事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将项目从办公桌移动到另一个.
当我运行php artisan时,它不起作用.

I moved my project from desk to another.
When I run php artisan it does not work.

我尝试运行composer update,但返回错误

I tried to run composer update, but it returns the error

脚本@php artisan包:发现如何处理错误代码为255的后自动加载转储事件

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

推荐答案

我通过以下方式解决了这个问题:

I solved the problem this way:

cd bootstrap/cache/
rm -rf *.php

bootstrap目录包含用于初始化结构的app.php文件.此目录还包含一个缓存目录,该目录包含为性能优化而生成的结构生成的文件,例如文件和路由缓存服务. Laravel存储配置文件,提供程序和缓存的服务,以优化此信息的获取.我的问题是,当其他开发人员在您的计算机上运行"php artisan config:cache"命令时,由于缓存文件夹中包含可以删除的文件,因此我删除了它们并解决了问题.

The bootstrap directory contains the app.php file that initializes the structure. This directory also houses a cache directory that contains structure-generated files for performance optimization, such as files and route cache services. Laravel stores configuration files, provider, and cached services to optimize the fetching of this information. The problem with me was when the other developer ran the 'php artisan config: cache' command on your machine and since the cache folder contains files that can be deleted, I deleted them and solved the problem.

这篇关于脚本@php artisan软件包:发现处理返回的错误代码为255的post-autoload-dump事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆