phonegap adding plugin to local app

During adding of any phonegap plugin sometime we get an error like this:
[Error: Error fetching plugin: Error: git command line is not installed]

To avoid this error you need a aproper set up of your phonegap development environment, that includes.
1- node.js installed
2- phonegap installed
3- Platform (Android) SDK installed optional in case you build your script remotely by phonegap build Ex $ phonegap remote build iosBut you require to login first on say $ phonegap remote login -u -p mYpASSw0RD
4-JAVA and ANT installed with environmental variable set on your system , require when you build your apps locally.
5-GIT command line tool recommended to install any plugin at local on your app.
procedure, install git and set your git path in environmental variablle.
flow: start->my computer-> right click and properties -> clcik advance system settings ->Environment variables ->System variable choose path from list of variables and click edit-> paste your git path adding semicoln before and after ex;C:Program FilesGitbin;.click ok , ok and return .
6- re open node command line tool, remembed if that is open , close it and reopen it and reach to app folder, then try any adding command say $ phonegap local plugin add
7- Its done

contact us