Created
August 1, 2018 18:44
-
-
Save ahmadtawakol/67f5e33a806b7cc9148b0fb6bfa63abe to your computer and use it in GitHub Desktop.
Remove and reinstall all cordova plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This one-liner removes all cordova installed plugins and then adds them again. | |
#Note: If you are not using Ionic, change 'ionic cordova plugin' to 'cordova plugin' | |
#! /bin/bash | |
cordova plugin list | cut -d ' ' -f 1 | while read plugin; do ionic cordova plugin rm $plugin && ionic cordova plugin add $plugin; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment