简体   繁体   中英

Phonegap adding plugin using command line tool

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.

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

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.

Windows上的git站点已移至: http//msysgit.github.io/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM