拉拉维尔/作曲家获得"Could not scan for classes inside"包



我正在将此包添加到我的作曲家 json 中,当我运行作曲家更新时,我收到此错误

Could not scan for classes inside ".../vendor/artdarek/pusherer/src/migrations" which does not appear to be a file nor a folder

此文件夹在包中不存在,在该包 composer.json 的自动加载语句中也没有引用。

当我在推送器部分挖掘我的 composer.lock 文件时,我看到这个原因是一些无法解释的原因

"classmap": [
                "src/migrations"
            ],

有人知道是什么将其添加到我的 composer.lock 文件中吗?

只要在不接触composer.lockcomposer.json文件的情况下做composer require artdarek/pusherer,你应该没事。

如果您的composer.lock文件有任何问题,只需将其删除,当您从上面运行composer require ....时,它将被重新创建。

查看软件包,似乎此行在1.0.1版本中,但在1.0.2版本中被删除。 您可以删除它,然后使用最新版本重新添加吗?

最新更新