問題描述
我正在嘗試通過輸入以下命令在終端中安裝 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:
[運行時異常]
無法掃描應(yīng)用程序/命令"中的類,該類既不是文件也不是文件夾
[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?
推薦答案
通常當(dāng)您有一些損壞的文件或任何 Composer 更新崩潰或中斷時,就會發(fā)生這種情況.
Usually this happens when you have some corrupted files or any composer update has crashed or interrupted.
要解決,只需刪除供應(yīng)商文件夾并運行composer 安裝
To solve, just delete the vendor folders and run
composer install
這篇關(guān)于如何修復(fù) Composer 錯誤:“無法掃描目錄內(nèi)的類"?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!