Composer php 使用具有不同稳定性标志的composer进行安装

Composer php 使用具有不同稳定性标志的composer进行安装,composer-php,Composer Php,我正在尝试安装一个仅为此软件包设置了不同的最小稳定性值的软件包 这是我要安装的软件包:“jaspersoft/rest-client”:“*@stable” 这是我的composer.json文件: { "name": "nepal/nepal", "description": "Nepal Project", "homepage": "http://192.168.3.32/nepal", "license": "MIT", "require": { "phpmai

我正在尝试安装一个仅为此软件包设置了不同的
最小稳定性
值的软件包

这是我要安装的软件包:“
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": []

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

您正在使用什么命令安装此软件包?@rob006添加在“要求”字段的软件包行上方,并在项目的根文件夹路径上,运行
composer install
 [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