Phonegap adding plugin using command line tool

久未见 提交于 2020-01-14 14:00:35

问题


I am new in phonegap, i go through steps define in phonegap official site for creating project using command line tool(nodejs). i success to create project and adding platform but,

following error occur when i am trying to add plugin.

Command :

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git

error :

[Error: Error fetching plugin: Error: git command line is not installed]

how can i resolve this error and how can i install git command line?

Thanks in advance.


回答1:


You could install git command line for Mac OS X in here, and then try run that again.
For Windows, download Git on code.google.com/p/msysgit.
Then: git clone git://project.url.here




回答2:


Error shown that you have not installed git command line tool. if you want to use git command first you need to install git command line tool. then you can add plugins ass per your requirements.




回答3:


The Site for git on Windows has moved to: http://msysgit.github.io/



来源:https://stackoverflow.com/questions/17849702/phonegap-adding-plugin-using-command-line-tool

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