如何添加带有ionic/ionic 2/ionic 3/ionic 4/ionic 5的本地cordova插件? [英] How to add a local cordova plugin with ionic / ionic 2 / ionic 3 / ionic 4 / ionic 5?

查看:303
本文介绍了如何添加带有ionic/ionic 2/ionic 3/ionic 4/ionic 5的本地cordova插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前同时使用ionic和cordova插件开发一个应用程序.我想知道如何使用文件plugins/fetch.json从本地文件系统更新我的插件.有什么主意吗?

I currently develop an app with ionic, and my cordova plugin in the same time. I wanted to know how to use the file plugins/fetch.json to update my plugin from a local file system. Any idea ?

推荐答案

使用ionic添加本地插件:

To add a local plugin with ionic :

ionic cordova plugin add /path/to/my/plugin/my.plugin.folder.here/

将其删除:

ionic cordova plugin remove my.plugin.folder.here

但是要更新它是另一个问题.实际上,每次编辑后,我都将再次删除并安装它.祝你好运;)

But to update it it's another problem. Actually I'm removing and installing it again after each edit. Good luck ;)

编辑

如果您使用的是离子cli的早期版本,但它不起作用,请将命令更改为以下内容:

If you are using a previous version of ionic cli, and it doesn't work, change the commands to the following :

ionic plugin add /path/to/my/plugin/my.plugin.folder.here/

ionic plugin remove my.plugin.folder.here

这篇关于如何添加带有ionic/ionic 2/ionic 3/ionic 4/ionic 5的本地cordova插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆