简体   繁体   English

错误:无法将您的要求解析为一组可安装的软件包。 Laravel

[英]Error: Your requirements could not be resolved to an installable set of packages. Laravel

I already have Composer version @ package_branch_alias_version @ (1.0.0-beta2) and Laravel Installer 2.1.0.我已经有 Composer 版本 @ package_branch_alias_version @ (1.0.0-beta2) 和 Laravel Installer 2.1.0。 but when I want to make a laravel project, it displays an error like this :但是当我想做一个 Laravel 项目时,它会显示如下错误:

Problem 1
    - Installation request for phpdocumentor/reflection-docblock 5.1.0 -> satisfiable by phpdocumentor/reflection-docblock[5.1.0].
    - phpdocumentor/reflection-docblock 5.1.0 requires ext-filter ^7.1 -> the requested PHP extension filter has the wrong version (7.2.23-1+ubuntu16.04.1+deb.sury.org+1) installed.
  Problem 2
    - phpdocumentor/reflection-docblock 5.1.0 requires ext-filter ^7.1 -> the requested PHP extension filter has the wrong version (7.2.23-1+ubuntu16.04.1+deb.sury.org+1) installed.
    - phpspec/prophecy v1.10.3 requires phpdocumentor/reflection-docblock ^2.0|^3.0.2|^4.0|^5.0 -> satisfiable by phpdocumentor/reflection-docblock[5.1.0].
    - Installation request for phpspec/prophecy v1.10.3 -> satisfiable by phpspec/prophecy[v1.10.3].

  To enable extensions, verify that they are enabled in those .ini files:
    - /etc/php/7.2/cli/php.ini
    - /etc/php/7.2/cli/conf.d/10-mysqlnd.ini
    - /etc/php/7.2/cli/conf.d/10-opcache.ini
    - /etc/php/7.2/cli/conf.d/10-pdo.ini
    - /etc/php/7.2/cli/conf.d/15-xml.ini
    - /etc/php/7.2/cli/conf.d/20-calendar.ini
    - /etc/php/7.2/cli/conf.d/20-ctype.ini
    - /etc/php/7.2/cli/conf.d/20-curl.ini
    - /etc/php/7.2/cli/conf.d/20-dom.ini
    - /etc/php/7.2/cli/conf.d/20-exif.ini
    - /etc/php/7.2/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.2/cli/conf.d/20-ftp.ini
    - /etc/php/7.2/cli/conf.d/20-gd.ini
    - /etc/php/7.2/cli/conf.d/20-gettext.ini
    - /etc/php/7.2/cli/conf.d/20-gmp.ini
    - /etc/php/7.2/cli/conf.d/20-iconv.ini
    - /etc/php/7.2/cli/conf.d/20-json.ini
    - /etc/php/7.2/cli/conf.d/20-mbstring.ini
    - /etc/php/7.2/cli/conf.d/20-mysqli.ini
    - /etc/php/7.2/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/7.2/cli/conf.d/20-phar.ini
    - /etc/php/7.2/cli/conf.d/20-posix.ini
    - /etc/php/7.2/cli/conf.d/20-readline.ini
    - /etc/php/7.2/cli/conf.d/20-shmop.ini
    - /etc/php/7.2/cli/conf.d/20-simplexml.ini
    - /etc/php/7.2/cli/conf.d/20-sockets.ini
    - /etc/php/7.2/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.2/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.2/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.2/cli/conf.d/20-tokenizer.ini
    - /etc/php/7.2/cli/conf.d/20-wddx.ini
    - /etc/php/7.2/cli/conf.d/20-xmlreader.ini
    - /etc/php/7.2/cli/conf.d/20-xmlwriter.ini
    - /etc/php/7.2/cli/conf.d/20-xsl.ini
    - /etc/php/7.2/cli/conf.d/20-zip.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

What should I do?我该怎么办? I have searched for a solution on the internet, but did not find the same.我在互联网上搜索了解决方案,但没有找到相同的解决方案。

Use PHP 7.1 if you want to use those packages.如果您想使用这些包,请使用 PHP 7.1。 Keep in mind that you should upgrade to php 7.3 at least.请记住,您至少应该升级到 php 7.3。

As per phpdocumentor documentation.根据phpdocumentor文档。 It require atleast PHP 7.2 .它至少需要PHP 7.2 To resolve this either upgrade your PHP version or downgrade phpdocumentor package要解决此问题,请upgrade your PHP versiondowngrade phpdocumentor package

requires

php: ^7.2
phpdocumentor/type-resolver: ^1.0
webmozart/assert: ^1
phpdocumentor/reflection-common: ^2.0
ext-filter: ^7.1

https://packagist.org/packages/phpdocumentor/reflection-docblock#5.1.0 https://packagist.org/packages/phpdocumentor/reflection-docblock#5.1.0

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法将您的要求解析为一组可安装的软件包。 - Laravel 5.7 - Your requirements could not be resolved to an installable set of packages. - Laravel 5.7 Laravel安装“您的要求无法解决为一组可安装的软件包。” - Laravel Installation “ Your requirements could not be resolved to an installable set of packages.” 您的要求无法解决为一组可安装的软件包。 (Laravel) - Your requirements could not be resolved to an installable set of packages. (Laravel) 您的要求无法解决为一组可安装的软件包。 用于运行应用程序 - Your requirements could not be resolved to an installable set of packages. for running an application 您的要求无法解决为一组可安装的软件包。 - Symfony 项目 - Your requirements could not be resolved to an installable set of packages. - Symfony Project 您的要求无法解析为可安装的软件包集。 使用作曲家 - Your requirements could not be resolved to an installable set of packages. using composer 您的要求无法解决为一组可安装的软件包。 - Laravel 流明邮件 - Your requirements could not be resolved to an installable set of packages. - Laravel Lumen Mail 我怎么能解决“您的要求无法解析为一组可安装的软件包”。 在 laravel8 - how can i slove "Your requirements could not be resolved to an installable set of packages." in laravel8 composer requireIllumination/support 会给出一个错误,例如“您的需求无法解析为一组可安装的软件包”。 - composer require illuminate/support gives an error like “Your requirements could not be resolved to an installable set of packages.” PHP Laravel 错误 - 您的要求无法解析为一组可安装的软件包 - PHP Laravel error - Your requirements could not be resolved to an installable set of packages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM