Big delays in fetching Cordova plugins in an Ionic 1 build

I have an Ionic 1 application and till yesterday (15 May 2017) the build process was fine. Today I see big delays in fetching plugins in the build process (20 or 30 minutes on some plugins). First it seems that the build process is stoped forever, but after a long time the build is resumed (sometimes some errors are displayed in verbose mode).

My network is fine - I tried on 2 different networks - my network is not the problem.
There are some problemes with the Cordova registry these days?

npm —version 
3.10.10
node —version
v6.10.3
cordova —version
5.3.3
ionic — version
2.0.0

The used command:

ionic build android --verbose

Some plugins are fetched, and on a random one, after a long, long time:
…………

Fetching plugin "com.plugin.datepicker@~0.5.0" via cordova plugins registry

npm
 ERR! fetch failed http://cordova.iriscouch.com/registry/_design/app/_rewrite/de.appplant.cordova.plugin.local-notification/-/de.appplant.cordova.plugin.local-notification-0.7.8.tgz

npm
 WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND cordova.iriscouch.com cordova.iriscouch.com:80

npm
 ERR! fetch failed http://cordova.iriscouch.com/registry/_design/app/_rewrite/de.appplant.cordova.plugin.local-notification/-/de.appplant.cordova.plugin.local-notification-0.7.8.tgz
npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND cordova.iriscouch.com cordova.iriscouch.com:80

npm 
ERR! fetch failed http://cordova.iriscouch.com/registry/_design/app/_rewrite/de.appplant.cordova.plugin.local-notification/-/de.appplant.cordova.plugin.local-notification-0.7.8.tgz

Firstly you should update the Cordova version. Latest is v7.0.0 (be advised to read the release notes before that) . Cordova plugins are now npm packages and installed from there.

Also plugins are only fetched once when you add them to your project. What most likely is possible you may have deleted plugins directory.

Plugins fetching is a one time process and that too depends on the no of plugins you are using.

You should also check your config.xml file and package.json file too see which plugins are being used.

1 Like

This is the super old Cordova plugin repository. I think this has been down for quite some time. You should really update your Cordova.