首页 > 解决方案 > 使用 composer 安装 Apache=pack 安装失败

问题描述

当我使用 powershell 和 composer 安装 Apache-pack 时,我运行 Symfony 4.4,如下所示:

composer require symfony/apache-pack

安装失败,它说:

Symfony operations: 1 recipe (2a9150161ef91a4c31501a86af2f4e35)
  -  WARNING  symfony/apache-pack (>=1.0): From github.com/symfony/recipes-contrib:master
    The recipe for this package comes from the "contrib" repository, which is open to community contributions.
    Review the recipe at https://github.com/symfony/recipes-contrib/tree/master/symfony/apache-pack/1.0

    Do you want to execute this recipe?
    [y] Yes
    [n] No
    [a] Yes for all packages, only for the current installation session
    [p] Yes permanently, never ask again for this project
    (defaults to n):
Installation failed, reverting ./composer.json to its original content

无法交互并单击“是”以执行配方。

我试图像这样删除并重新安装,但我遇到了同样的问题:

$ composer rem apache-pack
$ composer req apache-pack

标签: apachesymfonycomposer-php

解决方案


推荐阅读