laravel - 安装 Laravel 时出错:[ErrorException] file_get_contents(): read of 8192 bytes failed
问题描述
这是错误:
生成优化的自动加载文件
... [ErrorException] file_get_contents(): read of 8192 bytes failed with errno=9 Bad file descriptor
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [ --dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [] [] [<版本...
解决方案
您使用的是哪个 PHP 版本?因为这是 PHP 7.4 中的一个错误,如此处所述: https ://bugs.php.net/bug.php?id=79166
尝试使用 PHP 7.3,它应该可以正常工作
推荐阅读
- reactjs - componentWillMount 内部方法调用的 Jest 测试失败
- c - C从多个命名管道写入/读取
- excel - 使用 VBA 返回具有匹配值的开始和结束行号
- javascript - 如何在不同的日子使用不同的数组?
- netflow - Netflow V9 字段 ID 范围
- node.js - Heroku node.js 应用程序在部署后立即崩溃 - 内存不足
- c++ - 为什么允许推导私有类型?
- xml - 从 1 个 xslt 转换 2 个 xml 文件
- javascript - 在父 div 中安装画布
- c# - 如何从 SharePoint 列表(文档库)中获取驱动器 ID 以上传文件?