gpt4 book ai didi

php - Composer 更新-vvv 不工作

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:56:34 26 4
gpt4 key购买 nike

我已经在 ubuntu 14.04 上全局安装了 composer。当我运行 composer --version它适用于以下输出

Composer version 1.0-dev (45b1f356c24d87788a339f6a50d6d78bef464c47) 2015-02-27 14:31:27

但是当我运行以下命令时 Composer 更新-vvv

出现以下错误

Failed to initialize global composer: Composer could not find the config file: /home/enamul/.composer/composer.json
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section

我不知道为什么会这样。任何人都可以帮助我。

谢谢

最佳答案

只需将一个空的 JSON 对象放入您的全局配置中即可。

echo "{}" > ~/.composer/composer.json

Composer will merge this configuration with your project's composer.json when you run the install and update commands.

来自文档 https://getcomposer.org/doc/03-cli.md#composer-home

关于php - Composer 更新-vvv 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28785229/

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