问题
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