使用具有不同稳定性标志的composer安装

时间:2018-08-07 11:17:22

标签: composer-php

我正试图安装一个仅为此软件包设置了不同minimum stability值的软件包。

这是我要安装的软件包:“ jaspersoft/rest-client": "*@stable"

这是我的composer.json文件:

{
  "name": "nepal/nepal",
  "description": "Nepal Project",
  "homepage": "http://192.168.3.32/nepal",
  "license": "MIT",
  "require": {
    "phpmailer/phpmailer": "5.2.9",
    "phpoffice/phpexcel": "1.8.0",
    "raveren/kint":"1.0.x-dev",
    "jaspersoft/rest-client": "*@stable"
    },
  "minimum-stability": "dev"
}

如果有帮助,这里还有composer.lock文件:

{
"_readme": [
    "This file locks the dependencies of your project to a known state",
    "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
    "This file is @generated automatically"
],
"content-hash": "#dfasdfa",
"packages": [
    {
        "name": "symfony/var-dumper",
        "version": "3.4.x-dev",
        "source": {
            "type": "git",
            "url": "https://github.com/symfony/var-dumper.git",
            "reference": "sfds90sdf00d0f"
        },
        "dist": {
            "type": "zip",
            "url": "kkkkk",
            "reference": "dfsdf445435345",
            "shasum": ""
        },
        "require": {
            "php": "^5.5.9|>=7.0.8",
            "symfony/polyfill-mbstring": "~1.0"
        },
        "conflict": {
            "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
        },
        "require-dev": {
            "ext-iconv": "*",
            "twig/twig": "~1.34|~2.4"
        },
        "suggest": {
            "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
            "ext-intl": "To show region name in time zone dump",
            "ext-symfony_debug": ""
        },
        "type": "library",
        "extra": {
            "branch-alias": {
                "dev-master": "3.4-dev"
            }
        },
        "autoload": {
            "files": [
                "Resources/functions/dump.php"
            ],
            "psr-4": {
                "Symfony\\Component\\VarDumper\\": ""
            },
            "exclude-from-classmap": [
                "/Tests/"
            ]
        },
        "notification-url": "https://packagist.org/downloads/",
        "license": [
            "MIT"
        ],
        "authors": [
            {
                "name": "Nicolas Grekas",
                "email": "p@tchwork.com"
            },
            {
                "name": "Symfony Community",
                "homepage": "https://symfony.com/contributors"
            }
        ],
        "description": "Symfony mechanism for exploring and dumping PHP variables",
        "homepage": "https://symfony.com",
        "keywords": [
            "debug",
            "dump"
        ],
        "time": "2017-12-11T22:06:16+00:00"
    }
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {
    "raveren/kint": 20
},
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []

}

它仍然给我这个错误:

 [InvalidArgumentException]


Could not find package jaspersoft/rest-client*@stable at any version for your minimum-stability (dev). Check the package spelling or your minimum-stability

如何仅为此特定软件包设置最小稳定性标志?

0 个答案:

没有答案