gpt4 book ai didi

composer-php - 安装 Composer 时如何跳过建议

转载 作者:行者123 更新时间:2023-12-04 05:16:41 24 4
gpt4 key购买 nike

当我运行时在本地 composer install它没有显示任何有关建议的信息。在我们的 CI 环境中,它提供了一长串我想避免的建议。我想查看从缓存加载的内容的输出之类的东西,只是不想看到这个。我已经阅读了文档,但无法弄清楚如何隐藏它。

这些建议是(以及许多其他建议)......

symfony/security-core suggests installing symfony/expression-language (For using the expression voter)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
predis/predis suggests installing ext-phpiredis (Allows faster serialization and deserialization of the Redis protocol)
phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
phpseclib/phpseclib suggests installing pear-pear/PHP_Compat (Install PHP_Compat to get phpseclib working on PHP < 4.3.3.)
patchwork/utf8 suggests installing ext-intl (Use Intl for best performance)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)

如何隐藏此输出?

最佳答案

从 composer 1.6.3 开始,有一个 --no-suggest运行时隐藏所有建议的选项 composer installcomposer update .

关于composer-php - 安装 Composer 时如何跳过建议,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27923616/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com