Cannot uninstall Cordova plugin

In my Ionic app, I simply uninstalled the Cordova plugin this way:

$ cordova plugin remove phonegap-facebook-plugin 

Remove phonegap-facebook-plugin from android

but when I list the plugins, it still shows up as installed:

 $ cordova plugins cordova-plugin-googleplayservices 19.0.3 "Google Play Services for Android" cordova-plugin-googleplus 4.0.3 "Google+" cordova-plugin-whitelist 1.1.1-dev "Whitelist" ionic-plugin-keyboard 1.0.7 "Keyboard" phonegap-facebook-plugin 0.12.0 "Facebook Connect" 

Can help me figure this out?

thanks

+4
cordova ionic-framework
source share
5 answers

Remove phonegap-facebook-plugin from the plugin folder manually.

+5
source share

the problem is that you have to use the -save flag when running the corbo plugin rm command. plug cordova remove phonegap-facebook-plugin - save

This --save flag tells the compiler to also remove it from the config.xml file, which lists all the plugins. If you do not pass the save flag, the plug-in entry will remain in the config.xml file and, thus, when launched: “cordova ls plug-ins”, your plug-in is still there.

This should be emphasized more clearly in cordova white papers.

+3
source share

BUT). You can directly remove the plugin from the plugins directory.

  • got a project / directory / plugin.
  • Select the plugin you want to remove.
  • Remove from there.

IN). On obuntu or mac

  1. open terminal (ctrl+t). 2. $ cd project/directory/plugin. 3. $ rm -rf plugin-name-to-be-remove. 

FROM). Cordoba Team

  1. $ cd project/directory/plugin. 2. $ cordova plugin remove cordova-plugin-name 

It can help you.

0
source share

You can directly remove the plugin from the plugin folder or use the cordova plugin remove plugin-name list of plugins can be found using this command cordova plugin list

Sometimes this creates a big problem, as part of the plugin also remains in the platform folder. This way you can remove the platform and add the platform again.

0
source share

You can remove any cordova plugin using the command below,

 cordova plugin remove phonegap-facebook-plugin--force 

then try to remove all platforms using the command below,

 cordova platform remove <platform_name> 

then try adding platforms again using the command below,

 cordova platform add <platform_name> 

Finally, prepare the project using the command below,

 cordova prepare 
0
source share

All Articles