本文介绍了EINVRES请求https://bower.herokuapp.com/packages/失败,502的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下载bower软件包时,

Bower安装失败,502-Bad Gateway。



例如,ember库的bower安装在命令行中给出以下响应。

当直接从网址访问,它会提供以下信息。

When http://bower.herokuapp.com/ is accessed directly from URL it gives the following message.

解决方案

Bower is deprecating their registry hosted with Heroku. http://bower.herokuapp.com/ Will not be accessible anymore or it might be down intermittently, therefore, forcing users to a new registry.

Users working on old bower versions can update the .bowerrc file with the following data.

{
  "registry": "https://registry.bower.io"
}

.bowerrc file can be located at the same folder where bower.json and bower_components folder is located. If it is not present already, you can make one.

For references check the below links

这篇关于EINVRES请求https://bower.herokuapp.com/packages/失败,502的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 21:03