php - 我提交的Composer套件無法require
过去多啦不再A梦
过去多啦不再A梦 2017-06-10 09:47:26
0
2
462
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... 這個套件在倉庫是可以搜尋到的,這是什麼原因呢?

过去多啦不再A梦
过去多啦不再A梦

全部回覆(2)
迷茫

很簡單,你要在github發布release才可以,不然你只能用dev-master版本

阿神

加上你的包包的版本號碼

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!