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 ios
But you require to login first on https://build.phonegap.com say $ phonegap remote login -u iamreallyadog@gmail.com -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 https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
7- Its done