【问题标题】:'errno=5 Input/output error' occurred while run composer update in laravel7.9.2 project在 laravel7.9.2 项目中运行 composer update 时发生“errno=5 输入/输出错误”
【发布时间】:2020-05-02 14:48:49
【问题描述】:

我正在尝试在本地系统的 laravel 项目中执行 composer update,但发现此错误:

errno=5 input/output error

~ compoeser update

Loading composer repositories with package information
Updating dependencies (including require-dev)
  [ErrorException]
  hash_file(): read of 8192 bytes failed with errno=5 Input/output error

安装 php-intl 扩展后会发生这种情况。

我在我的系统中完全重新安装了 php 及其所有扩展,但问题没有解决。 另外,我重新安装了composer并安装了另一个新的laravel,但都没有解决问题。

操作系统:Ubuntu 18.04.4 LTS 64bit

php:7.4.5

laravel:7.9.2

【问题讨论】:

    标签: php linux composer-php errno laravel-7


    【解决方案1】:

    运行这个

    rm -rf ~/.composer/cache
    

    或了解更多调试信息

    Composer install/update not working

    经过验证的答案是您的解决方案...

    【讨论】:

      【解决方案2】:

      如果您在 VM 中运行它,请尝试添加 RAM。我发现我的 Vagrantbox 默认为 512MB。通过 .Vagrantfile 将其设置为 2048 后,它起作用了。

      【讨论】:

        猜你喜欢
        • 2021-09-11
        • 2023-03-15
        • 2019-09-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-08-10
        • 1970-01-01
        • 2016-11-13
        相关资源
        最近更新 更多