[英]'errno=5 Input/output error' occurred while run composer update in laravel7.9.2 project
I'm trying to do composer update
in a laravel project in my local system, but caught this error:我正在尝试在本地系统的 laravel 项目中进行
composer update
,但发现了此错误:
errno=5 input/output error errno=5 输入/输出错误
~ 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
It's happening after installing the php-intl
extension.它在安装
php-intl
扩展后发生。
I completely reinstall php and all its extensions in my system, but the problem not solved.我在我的系统中完全重新安装了 php 及其所有扩展,但问题没有解决。 also, I reinstall the composer and install another new laravel but neither solved the problem.
另外,我重新安装了作曲家并安装了另一个新的 laravel 但都没有解决问题。
OS: Ubuntu 18.04.4 LTS 64bit操作系统:Ubuntu 18.04.4 LTS 64bit
php: 7.4.5 php:7.4.5
laravel: 7.9.2 laravel:7.9.2
Just run this运行这个
rm -rf ~/.composer/cache
or for more debugging info或了解更多调试信息
Composer install/update not working 作曲家安装/更新不起作用
The Verified Answer is your solution...已验证的答案是您的解决方案...
In case you run that in a VM, try adding RAM.如果您在 VM 中运行它,请尝试添加 RAM。 I found that my Vagrantbox defaulted to 512MB.
我发现我的 Vagrantbox 默认为 512MB。 After setting it to 2048 via.Vagrantfile it worked.
通过.Vagrantfile 将其设置为 2048 后,它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.