作曲家更新-vvv无法正常工作 [英] composer update -vvv is not working

查看:89
本文介绍了作曲家更新-vvv无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在ubuntu 14.04上全局安装了composer。
当我运行 composer --version
时,它可以使用以下输出

I have installed composer globally on ubuntu 14.04. When I run composer --version it 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 command composer 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




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

这篇关于作曲家更新-vvv无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆