php - 我提交的Composer包无法require
本文介绍了php - 我提交的Composer包无法require的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
Administrator@changwei MINGW64 /d/github/test
$ composer require changwei/array2text
[InvalidArgumentException]
Could not find package changwei/array2text at any version for your minimum-
stability (stable). Check the package spelling or your minimum-stability
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
报上面的错误,https://packagist.org/package... 这个包在仓库是可以搜索到的,这是什么原因呢?
解决方案
很简单,你要在github发布release才可以,不然你只能用dev-master版本
这篇关于php - 我提交的Composer包无法require的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文