How to fix Composer error: quot;could not scan for classes inside dirquot;?(如何修复 Composer 错误:“无法扫描目录中的类?)
问题描述
我正在尝试通过输入以下命令在终端中安装作曲家:
I'm trying to install composer in terminal by entering this command:
php composer.phar install
它开始安装所需的软件包,但我收到此错误类型:
it starts to install required packages but I'm getting this error type:
[运行时异常]
无法扫描app/commands"中看起来既不是文件也不是文件夹的类
[RuntimeException]
Could not scan for classes inside "app/commands" which does not appear to be a file nor a folder
我该如何解决这个问题?
How can I overcome this issue?
推荐答案
通常当您有一些损坏的文件或任何作曲家更新崩溃或中断时会发生这种情况.
Usually this happens when you have some corrupted files or any composer update has crashed or interrupted.
要解决,只需删除供应商文件夹并运行作曲家安装
To solve, just delete the vendor folders and run
composer install
这篇关于如何修复 Composer 错误:“无法扫描目录中的类"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何修复 Composer 错误:“无法扫描目录中的类"?


- SoapClient 设置自定义 HTTP Header 2021-01-01
- Laravel 仓库 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01