php - Laravel 安装错误:[ErrorException] file_get_contents(): read of 8192 bytes failed with errno=9 Bad file descriptor
问题描述
我正在一台新 PC 上设置 Laravel 开发环境,并且一切都安装正确,即 XAMPP、NODE JS 和 Composer。但是,当我尝试通过 Laravel 安装程序或 composer 安装 Laravel 时,我收到一条错误消息: [ErrorException] file_get_contents(): read of 8192 bytes failed with errno=9 Bad file descriptor
. 我试图在 StackOverflow 上搜索答案,但只有一个选项,但它对我不起作用。有人愿意帮我找出问题所在吗?先感谢您。(Laravel 版本 7)。
解决方案
我做了一个快速搜索,似乎它是 PHP 7.4 中的一个错误,应该在 PHP 7.3 中运行良好。 https://bugs.php.net/bug.php?id=79166
您使用哪个版本?,您可以检查使用phpinfo();
或在 windows 命令行上查找 PHP 版本
推荐阅读
- c# - 如果记录已经存在,如何更新记录 EF
- testing - 如果端点返回 404,如何避免 Ember 测试失败?
- javascript - JavaScript aray filter() 方法的问题
- java - 使用 liquibase 同时更新 2 个数据库
- spring - 通过 spring boot 连接到 MongoDb 数据库时出现以下错误
- python - 问题预测结果预计会出现批次错误
- python - 在 python setuptools 中混合 cython 和 cmake 扩展
- javascript - 如何在反应盖茨比中映射此 JSON 文件
- azure - 使用 DefaultAzureCredential 访问具有系统托管标识的 Azure AppConfiguration
- javascript - 用于选择作为嵌套元素的单选按钮的 Javascript 代码