2017-05-27 172 views
3

我在本地有一個科爾多瓦插件。我可以通過鍵入其添加到我的項目沒有問題:科爾多瓦插件無法刪除

cordova plugin add --link /Users/goforu/WorkSpace/MyProject/cordovaPlugins/cordova-plugin-IFlyspeech

但我無法從我的項目中刪除:

cordova plugin remove cordova-plugin-xunfeiListenSpeaking 

它總是將錯誤

Error: Plugin "cordova-plugin-xunfeiListenSpeaking" is not present in the project. See cordova plugin list .

當我輸入cordova plugin list時,我得到:

cordova-plugin-console 1.0.5 "Console" cordova-plugin-device 1.1.4 "Device" cordova-plugin-splashscreen 4.0.3 "Splashscreen" cordova-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 "Cordova sqlite storage plugin" "Cordova sqlite storage plugin" ionic-plugin-keyboard 2.2.1 "Keyboard" {}

我也注意到,每次我刪除並添加android平臺,這個插件將不會被安裝在項目中。

問題解決: 正如jcesarmobile所說,也許這是一個錯誤。我通過擺脫'--link'來解決這個問題。現在它正常工作。

+0

你有沒有嘗試用'--save'選項添加插件? –

+0

是的,我試過了。它沒有工作。 – goforu

回答

4

這是使用--link時的錯誤。我已經reported it

無論如何,--linkis broken too,所以不要使用它。除非創建插件,並且想在IDE中編輯原始插件文件夾時進行更改,否則不需要它。