Yii2 的composer更新报错 file could not be downloaded (HTTP/1.1 502 Bad Gateway)

分类:编程 |

就今天进行composer 进行更新时报错


image.png


 /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 


再次运行命令:

image.png