【问题标题】:No such file or directory error (Laravel/Homestead)没有这样的文件或目录错误(Laravel/Homestead)
【发布时间】:2017-10-22 13:19:47
【问题描述】:

我在宅基地上使用 laravel。我尝试了很多不同的命令来清除缓存和其他东西,但没有任何帮助。

我不断收到此错误:

file_put_contents(/Users/Victor/Sites/pft/pft-back/storage/framework/cache/data/05/9f/059f793d8b638b8c21ead7edbba382b9e9183fac): failed to open stream: No such file or directory 我试过的是:

  1. 为存储文件夹设置 777
  2. php artisan cache:clear
  3. php artisan view:clear
  4. php artisan clear-compiled
  5. composer dump-autoload

不知道为什么会这样,但我很确定是因为宅基地,因为我最近才开始使用它。

我还尝试了来自 homestead 用户和 mac 用户的所有命令(我在 mac 上运行 homestead)

【问题讨论】:

    标签: php laravel


    【解决方案1】:

    问题是底层存储映射,可以检查storage/frameworkstorage/framework/cachestorage/framework/cache/data是否有读/写权限,否则创建它们?

    【讨论】:

      猜你喜欢
      • 2018-08-11
      • 2021-10-31
      • 1970-01-01
      • 2021-09-26
      • 2021-04-09
      • 2022-12-18
      • 2013-08-08
      • 2013-11-04
      • 2012-02-18
      相关资源
      最近更新 更多