Solving Composer Issues

Solving Composer Issues

Tim Wagner 04. October 2016 Tips & Tricks

0 Comments // Reading Time: 1 min.

Roave Security Advisories cannot be installed

If you encounter the following error when running composer update

Problem 1
    - vendor/package 1.8.4 requires roave/security-advisories dev-master -> satisfiable by roave/security-advisories[dev-master].
    - vendor/package 1.8.4 requires roave/security-advisories dev-master -> satisfiable by roave/security-advisories[dev-master].
    - vendor/package 1.8.4 requires roave/security-advisories dev-master -> satisfiable by roave/security-advisories[dev-master].
    - Removal request for roave/security-advisories == 9999999-dev
    - Installation request for vendor/package (locked at 1.8.4, required as ^1.8) -> satisfiable by vendor/package[1.8.4].

you have an error in your composer.json file.

This error occurs when you use the lines

"require": {
    "roave/security-advisories": "dev-master",
    "vendor/package": "^1.8"
}

in this order and the package also includes a require statement for roave/security-advisories. The issue can easily be resolved by moving the line

"roave/security-advisories": "dev-master"

into the "require-dev": section instead of "require":.


Comments

No comments.
    Drop files here