The cordova plugin cannot be removed
I have a cordova plugin in my local. I can add it to my project without problem by typing:
cordova plugin add --link /Users/goforu/WorkSpace/MyProject/cordovaPlugins/cordova-plugin-IFlyspeech
But I cannot remove it from my project:
cordova plugin remove cordova-plugin-xunfeiListenSpeaking
It always logs an error
Error: Plugin "cordova-plugin-xunfeiListenSpeaking" is missing from the project. Cm
cordova plugin list
.
When I type cordova plugin list
, I get this:
cordova-plugin-console 1.0.5 "Console" cordova-plugin-device 1.1.4 "Device" cordova-plugin-splashscreen 4.0.3 "Splashscreen" barcon-plugin-statusbar 2.2.1 "StatusBar" Cordova-plugin-whitelist 1.3.1 "Whitelist" cordova-plugin-xunfeiListenSpeaking 0.0.1 "cordova-plugin-xunfeiListenSpeaking" cordova-sqlite-storage 2.0.4 "Plugin for storing sqlite cordons" "Plugin for storing Cordova sqlite" ionic plugin keyboard 2.2. 1 "Keyboard" {}
And I also noticed that every time I remove and add Android platform, this plugin will not be installed in the project.
Issue resolved: As jcesarmobile said, maybe it is a bug. I solved this problem by getting rid of the "-link". And now it works correctly.
source to share
This is a bug in use --link
. I have already reported this .
Anyway, --link
doesn't work either , so don't use it. You really don't need this unless you are creating a plugin and want to have changes in the original plugins folder when you edit it in your development environment.
source to share
Yes, this is displayed when running the command
cordova plugin remove/rm cordova-plugin-xunfeiListenSpeaking
Error: Plugin "cordova-plugin-xunfeiListenSpeaking" is missing from the project. See the list of Cordova plugins.
because actually there are no plugins in the plugin list
but --link is broken as he said.
So there is a workaround for this. You can simply remove the node modules directly or using the command. this will solve because there are module nodes with your plugin name.
If the error is still resolved, you can simply remove and add the Android platform
source to share