![](https://i-blog.csdnimg.cn/blog_migrate/3e8654bccc71fc34f05f9d8e7fc56c19.png)
In PackageDiscoveryTrait.php line 331:
Could not find a version of package getuilaboratory/getui-pushapi-php-client-v2 matching your minimum-stability (st
able). Require it with an explicit version constraint allowing its desired stability.
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
报错这样 报错意思是找不到包
composer search getui-pushapi #搜索命令
搜索结果如下
![](https://i-blog.csdnimg.cn/blog_migrate/004d9299ebf66d47a95f64eda57e4ca3.png)
认真核对 命令没问题 那么问题就来了
这是我的安装命令 安装个推v2
composer require getuilaboratory/getui-pushapi-php-client-v2
不知道是这个包的问题 还是什么 如果有大佬可以评论告知
最后正确的命令是
composer require getuilaboratory/getui-pushapi-php-client-v2 "@dev"