本文介绍了作曲家更新-vvv无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已在ubuntu 14.04上全局安装了composer。
当我运行 composer --version
时,它可以使用以下输出
I have installed composer globally on ubuntu 14.04.When I run composer --versionit works with the following output
Composer version 1.0-dev (45b1f356c24d87788a339f6a50d6d78bef464c47) 2015-02-27 14:31:27
但是当我运行以下命令
composer update -vvv
But when I run the following commandcomposer update -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
我不知道为什么会这样。有人可以帮我吗。
I have no idea, why this is happening. Can anyone help me with that.
谢谢
推荐答案
一个空的JSON对象进入您的全局配置。
Just put an empty JSON object into your global config.
echo "{}" > ~/.composer/composer.json
从文档
这篇关于作曲家更新-vvv无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!