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

﹥>﹥吖頭↗ 提交于 2019-11-29 19:38:09
Nithin Baby

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

Simplest solution is to just upgrade bower to latest version

If installed via NPM:

npm i -g bower

When using asp.net core then should change something like this. bowerrc.json you can find inside project folder.

  {
     "registry": "https://registry.bower.io",
     "directory": "wwwroot/lib"
  }

If you use windows to install npm, You must run "Node.js command prompt" with administrator and run this command: npm i -g bower. I tried and worked :)

echo '{"registry": "https://components.bower.io","directory": "wwwroot/lib"}' > .bowerrc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!