Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
307 views
in Technique[技术] by (71.8m points)

javascript - EINVRES请求https://bower.herokuapp.com/packages/失败,502(EINVRES Request to https://bower.herokuapp.com/packages/ failed with 502)

Bower install fails with 502 - Bad Gateway when downloading bower packages.

(下载bower软件包时,Bower安装失败,使用502 - Bad Gateway。)

For example bower install for ember library gives following response in command line.

(例如,用于ember库的bower安装在命令行中提供以下响应。)

EINVRES Request to https://bower.herokuapp.com/packages/ember failed with 502

(EINVRES请求https://bower.herokuapp.com/packages/ember失败,502)

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

(当直接从URL访问http://bower.herokuapp.com/时 ,它会给出以下消息。)

This Bower version is deprecated.

(此Bower版本已弃用。)

Please update it: npm install -g bower.

(请更新它:npm install -g bower。)

The new registry address is https://registry.bower.io

(新的注册地址是https://registry.bower.io)

  ask by Nithin Baby translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Bower is deprecating their registry hosted with Heroku.

(Bower正在弃用Heroku托管的注册表。)

http://bower.herokuapp.com/ Will not be accessible anymore or it might be down intermittently, therefore, forcing users to a new registry.

(http://bower.herokuapp.com/将不再可访问,或者可能会间歇性地关闭,因此,迫使用户进入新的注册表。)

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

(使用旧的bower版本的用户可以使用以下数据更新.bowerrc文件。)

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

.bowerrc file can be located at the same folder where bower.json and bower_components folder is located.

(.bowerrc文件可以位于bower.jsonbower_components文件夹所在的同一文件夹中。)

If it is not present already, you can make one.

(如果它不存在,你可以制作一个。)

For references check the below links

(有关参考,请查看以下链接)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...