无法更新yii2中的composer.phar

时间:2015-10-26 08:19:03

标签: yii2 composer-php

我使用以下命令更新我的作曲家:

php composer.phar update

我在终端中收到以下错误:

[Composer\Repository\RepositorySecurityException]                            
  The contents of http://packagist.org/p/provider-archived%2491683312159b2222  
  f06683bc446f1347559e31839d8dbb6a3c2512e677e01798.json do not match its sign  
  ature. This should indicate a man-in-the-middle attack. Try running compose  
  r again and report this if you think it is a mistake.  

我无法弄清楚任何人可以帮我解决的问题?提前致谢

1 个答案:

答案 0 :(得分:0)

我在composer.json中添加了以下行,一切都开始工作了。

 "repositories": {
        "packagist": { "url": "https://packagist.org", "type": "composer" }
    },

我不知道目的,但它对我有用,我能够运行

php composer.phar update