Cordova "failed to fetch plugin" error

Try the following:

cordova plugin add https://github.com/t2wu/cordova-plugin-geofence.git#t2wu --nofetch

If it doesn't work. Do the following step:

  1. Remove all platform (cordova platform rm android) and (cordova platform rm ios)

  2. Remove all plugins cordova plugin rm plugin-name.

  3. If step2 failed, then delete all plugins using a file manager from directory <projectroot>/plugins

  4. Add all plugins

  5. Add https://github.com/t2wu/cordova-plugin-geofence.git#t2wu

  6. Add all platform.

Tags:

Cordova