-1

我用这个 composer.json 创建了一个作曲家包

{
    "name": "webiny/cache",
    "type": "library",
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.4.0",
        "jamm/memory": "dev-master"
    },
    "require-dev": {
        "phpunit/phpunit": "4.1.*"
    },
    "autoload": {
        "psr-4": {
            "Webiny\\Component\\Cache\\": ""
        }
    },
    "extras": {
        "branches": {
            "dev-master": "~0.9"
        }
    }
}

jamm/memory当我对此文件执行 composer install 时,我在解析包时遇到问题:

{
    "require": {
        "webiny/cache": "dev-master"
    }
}

我得到的错误是

  Problem 1
    - Installation request for webiny/cache dev-master -> satisfiable by webiny/cache[dev-master].
    - webiny/cache dev-master requires jamm/memory dev-master -> no matching package found.

当我尝试安装jamm/memoryif 工作正常时:

{
    "require": {
        "jamm/memory": "dev-master"
    }
}

我将minimum-stability标志设置为devin webiny\cache。我也尝试将发布设置为@dev依赖jamm/memory...没有帮助。

我无法弄清楚我做错了什么。

4

1 回答 1

0

Solved it.... I added the minimum-stability flag to the composer.json file that I used to install the libraries...not just on the composer.json file that is used to define a package.

于 2014-08-30T18:43:36.740 回答