Yii2 的composer更新报错 file could not be downloaded (HTTP/1.1 502 Bad Gateway)
就今天进行composer 进行更新时报错
/usr/bin/composer update Loading composer repositories with package information Updating dependencies (including require-dev) The "https://bower.herokuapp.com/packages/jquery" file could not be downloaded (HTTP/1.1 502 Bad Gateway) https://bower.herokuapp.com/packages could not be fully loaded, package information was loaded from the local cache and may be out of date Nothing to install or update
网上找了很多方法, 但都没解决, 这里说一下我的解决方法:
执行:
composer self-update
composer clear-cache
再次运行命令:
composer config -g repos.packagist composer https://mirrors.tencent.com/composer/
Composer 安装简明教程:
一、下载: wget https://mirrors.tencent.com/composer/composer.phar 二、安装: mv composer.phar /usr/local/bin/composer