【发布时间】:2020-06-12 01:23:08
【问题描述】:
知道为什么作曲家会抛出以下错误:
[InvalidArgumentException]
Could not find a matching version of package divix1988/laminas-smarty-module. Check the package spelling, your vers
ion constraint and that the package is available in a stability which matches your minimum-stability (stable).
尝试通过以下方式添加我自己的新依赖项时:
composer require divix1988/laminas-smarty-module?
【问题讨论】:
-
好像你正在尝试添加一个私有包,通常他们需要在 packagist 中。这里有一些关于它的资源。 getcomposer.org/doc/articles/…barryvanveen.nl/blog/…
-
您是如何准确配置所有这些的?我没有在 Packagist 上找到你的包裹
-
这能回答你的问题吗? Use PHP composer to clone git repo
-
谢谢@NicoHaase,你是对的,我需要先将它添加到packagist。
标签: git github composer-php