您的要求无法解析为可安装的软件包集(软件包不包含发行版)

时间:2017-09-18 18:04:12

标签: php github composer-php

为什么composer update在这里失败?

$ composer update
 ...
    Your requirements could not be resolved to an installable set of packages.

      Problem 1
        - The requested package _somePackage_ could not be found in any version, there may be a typo in the package name.

    Potential causes:
     - A typo in the package name
     - The package is not available in a stable-enough version according to your minimum-stability setting
       see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

    Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

$ cat composer.json 
{
  "name": "phpClasses.org-cwordstoNumbers/cwordstoNumbers",
  "type": "behat-extension",
  "description": "Convert English words (e.g., first, fifth, five hundred and seventieth) to numbers",
  "keywords": ["words to numbers", "cardinal", "ordinal"],
  "homepage": "https://www.phpclasses.org/package/10082-PHP-Convert-text-with-an-amount-to-its-numeric-value.html",
  "license": "GPL-3",
  "authors": [
     {
       "name": "Mohammed Asad",
       "email": "asadgenx@github.com"
     }
  ]
}

1 个答案:

答案 0 :(得分:0)

作曲家包必须至少包含一个版本。如果没有发布,add one