【问题标题】:Your requirements could not be resolved to an installable set of packages (package does not contain a release)您的要求无法解析为一组可安装的软件包(软件包不包含发布)
【发布时间】:2018-02-27 08:42:02
【问题描述】:

为什么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"
     }
  ]
}

【问题讨论】:

    标签: php github composer-php


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-08-27
      • 1970-01-01
      • 2018-01-11
      • 2014-06-10
      • 2016-11-10
      • 2019-08-22
      相关资源
      最近更新 更多