gpt4 book ai didi

laravel 应用程序已移至另一台电脑

转载 作者:行者123 更新时间:2023-12-02 16:10:15 26 4
gpt4 key购买 nike

我刚刚将我的 Laravel 应用程序转移到另一台电脑上,并且安装了 Composer。我正在项目的根目录运行composer install,但它显示以下错误:

{"error":{"type":"ErrorException","message":"file_put_contents(\/meta\/services.
json): failed to open stream: No such file or directory","file":"C:\\national-fl
eet\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\Filesystem.php","l
ine":71}}

我尝试了 CACLS -R 755 应用程序/存储(作为管理员)然后 Composer 更新但同样的错误。 bootstrap/compiled.php 在我的项目中不存在。我该怎么办?

最佳答案

我收到此错误,因为/app/storage 中的某些文件夹丢失

为了修复该错误,我手动创建了以下文件夹:

app/storage/
app/storage/cache/
app/storage/logs/
app/storage/meta/
app/storage/sessions/
app/storage/views/

然后删除我的供应商文件夹的内容并再次运行composer update

关于laravel 应用程序已移至另一台电脑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24648587/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com