每当我尝试 composer update
或删除供应商目录 + composer install
时,我都会收到此错误消息:
[RuntimeException]
Could not scan for classes inside "C:\Users\Mateusz\Documents\NetBeansProje
cts\projectname\trunk\newproject\vendor/symfony/finder/Symfony/Component/Find
er/src/Illuminate/Queue/IlluminateQueueClosure.php" which does not appear t
o be a file nor a folder
嗯,实际上我的项目中根本没有这个文件。 /Finder
目录中没有 /src
。有人可以建议我现在该怎么做吗?
我几乎是初级程序员,所以老实说,这对我来说就像魔术一样。 我在一个更大的项目上工作,他们只是告诉我更新我的项目和 Composer ,但 Composer 更新给了我这个错误。
最佳答案
这似乎是旧版本 Composer 的一个错误......
尝试使用此命令更新 Composer :
composer self-update
然后删除根项目文件夹目录中的“composer.lock”文件并通过运行清除 Composer 缓存:
composer clear-cache
然后重新运行:
composer install
关于php - 无法扫描里面的类/IlluminateQueueClosure.php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35630965/