cannot remove Cordova plugin

99封情书 提交于 2019-12-24 06:13:20

问题


I'm using the following command to remove an unused Cordova plugin:

$ cordova plugin remove cordova-plugin-facebook
  Uninstalling cordova-plugin-facebook from android
  Uninstalling cordova-plugin-facebook from its

Its giving me the following error:

  Error: Uh oh!
  Path must be a string. Received undefined

How do I resolve the problem or remove the plugin by hand?


回答1:


I'm guessing that on the line:

Uninstalling cordova-plugin-facebook from its

That last word should be ios? If so, the ios platform might need to be removed and re-added:

  1. Call cordova platform rm ios.
  2. Check your config.xml file for a <plugin name="cordova-plugin-facebook"> ... line. Remove it if it's still there.
  3. Call cordova platform add ios.

Hopefully that cleans things out properly.




回答2:


I agree to most of @eb1 answer expect for using cordova for install/remove it will not work for my case instead use

ionic plugin rm


来源:https://stackoverflow.com/questions/40322627/cannot-remove-cordova-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!