How to remove installed ionic cordova plugin from ionic 2 / 3 or ionic V2+ project

后端 未结 4 1843
情深已故
情深已故 2021-02-13 14:22

I installed Cordova and Ionic Native plugins into the ionic3 project.

But I need to remove only that specific Cordova and Ionic Native plugins from the project complete

4条回答
  •  悲&欢浪女
    2021-02-13 14:53

    I just refer their document here.

    Example:

    To install a plugin we are using following way.

    ionic cordova plugin add

    (ionic cordova plugin add cordova-plugin-dialogs)

    npm install --save @ionic-native/

    (npm install --save @ionic-native/dialogs)

    To Uninstall the plugin just need to revert above things back as bellow

    ionic cordova plugin remove or ionic cordova plugin rm

    (ionic cordova plugin remove cordova-plugin-dialogs) or (ionic cordova plugin rm cordova-plugin-dialogs)

    Finally uninstall the associated Ionic Native package(s) from npm

    npm uninstall --save @ionic-native/

    (npm uninstall --save @ionic-native/dialogs)

    The --save flag will remove the project's package.json entry for that plugin

    Doing above things helps me to remove plugin completely with its npm dependencies from the project. Hope this will useful to someone else

提交回复
热议问题