Skip to content

api recipe can't be installed due to minimum-stability  #140

@mappedinn

Description

@mappedinn

Hi,

I would like to use api-platform/api-platform in my flex-enabled symfony application. To do so, I run the following commands:

# creation of the flex-enable symfony application
composer create-project symfony/skeleton:3.3.* sf-flex

# installation of the api recip
composer req api

Unfortunately, I am getting this error message:

[InvalidArgumentException]
Could not find package api-platform/api-pack at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []

To avoid that problem, I tried several solutions:

Solution 1

composer create-project symfony/skeleton:3.3.x-dev sf-flex
composer req api

SAME ERROR

Solution 2

composer create-project symfony/skeleton:3.3.x-dev sf-flex # with a newer version of symfony/skeleton
composer req --dev api

SAME ERROR

Solution 3

I tried to update the file composer.lock by changing that field as follows:

    # "minimum-stability": "stable", # has been changed to to dev
    "minimum-stability": "dev",

SAME ERROR

So, any proposal??

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions