Phonegap adding plugin using command line tool

18,835

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

Share:
18,835
Butani Vijay
Author by

Butani Vijay

http://www.vijaybutani.com

Updated on July 31, 2022

Comments

  • Butani Vijay
    Butani Vijay almost 2 years

    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.