Home > php教程 > php手册 > Composer settings to ignore version matching methods

Composer settings to ignore version matching methods

WBOY
Release: 2016-10-20 10:08:17
Original
2082 people have browsed it

Composer install reports an error!
Composer is a dependency management tool for PHP. It allows you to declare code libraries that your project depends on and it will install them for you in your project. Composer is not a package manager. Yes, it involves "packages" and "libraries", but it's managed on a per-project basis, with installations in some directory within your project (e.g. vendor). By default it won't install anything globally. So this is just a dependency management.
An error was encountered when executing composer install: Your requirements could not be resolved to an installable set of packages. This is because the version required by composer.json does not match.
The complete error is as follows: Loading composer repositories with package information<br> Installing dependencies (including require-dev) from lock file<br> Your requirements could not be resolved to an installable set of packages.<br> <br> Problem 1<br> - Installation request for arcanedev/support 3.17.0 -> satisfiable by arcanedev/support[3.17.0].<br> - arcanedev/support 3.17.0 requires php >=5.6 -> your PHP version (5.5.12) does not satisfy that requirement.<br> Problem 2<br> - Installation request for laravelista/ekko 1.2.3 -> satisfiable by laravelista/ekko[1.2.3].<br> - laravelista/ekko 1.2.3 requires php >=5.6.0 -> your PHP version (5.5.12) does not satisfy that requirement.<br> Problem 3<br> - Installation request for league/flysystem 1.1.x-dev -> satisfiable by league/flysystem[1.1.x-dev].<br> - league/flysystem 1.1.x-dev requires php >=5.6.0 -> your PHP version (5.5.12) does not satisfy that requirement.<br> Problem 4<br> - Installation request for league/flysystem dev-master -> satisfiable by league/flysystem[dev-master].<br> - league/flysystem dev-master requires php >=5.6.0 -> your PHP version (5.5.12) does not satisfy that requirement.<br> Problem 5<br> - league/flysystem 1.1.x-dev requires php >=5.6.0 -> your PHP version (5.5.12) does not satisfy that requirement.<br> - laravel/framework 5.2.x-dev requires league/flysystem ~1.0 -> satisfiable by league/flysystem[1.1.x-dev].<br> - Installation request for laravel/framework 5.2.x-dev -> satisfiable by laravel/framework[5.2.x-dev].It prompts that my PHP 7 version is too high and does not meet the version required by composer.json, but in PHP It should also be able to run under 7. Composer can be set to ignore version matching. The command is: composer install --ignore-platform-reqs<br> or<br> composer update --ignore-platform-reqsExecute the composer command again to install the package normally.

Set composer as domestic mirror [speed] composer config -g repo.packagist composer https://packagist.phpcomposer.com

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template