how to add(install) plugin in phonegap 3.0?

纵然是瞬间 提交于 2019-12-13 04:05:54

问题


I created new cordova project.

but I can't installed plugin

I have been using the following command.

$plugman install --platform android --project . --plugin git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

And this message was shown.

failed to get the plugin via git from URL git-wip-us.apache.org/repos/asf/cordova-plugin-dev ice-motion.git, output: Cloning into 'plugman-tmp1381737348287'... fatal: unable to access 'git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git/': Protocol https not supported or disabled in libcurl

What should I do?

Please tell me.... thank


回答1:


I think plugman is for version 2.9 or less, instead you should use:

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

As shown here:

http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface



来源:https://stackoverflow.com/questions/19356108/how-to-addinstall-plugin-in-phonegap-3-0

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