Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Bower returning a 410 error message?

Tags:

bower

Recently my bower tasks have been failing and returning a 410 error message like below:

2017-10-11T13:22:21.2226829Z bower angular-cookies#v1.6.7-build.5456+sha.3651e42
EINVRES Request to https://bower.herokuapp.com/packages/angular-cookies failed with 410

2017-10-11T13:22:21.2706832Z ##[error]Bower failed with error: C:\NPM\Modules\bower.cmd failed with return code: 1

I haven't actually changed anything in this project I'm just spinning up a new instance in a test slot. Does anyone know why this has started happening?

like image 570
BigTallJosh Avatar asked Oct 11 '17 13:10

BigTallJosh


2 Answers

This is because bower has changed the registry url today without a redirect.

The preferred method is to update bower:

npm upgrade -g bower

However if you are unable to do so for whatever reason you can edit your .bowerrc file to include this to point to the new url.

{
     "registry": "https://registry.bower.io"
}
like image 165
BigTallJosh Avatar answered Nov 05 '22 21:11

BigTallJosh


You need upgrade your bower.

npm upgrade -g bower

Please take a look for upgrade solutions here.

like image 7
Eren Ayhan Avatar answered Nov 05 '22 21:11

Eren Ayhan