Showing images from Phone's Gallery

Hello Everyone,
I’m trying to use the ImagePicker Cordova plugin to display the images that are in my phone’s gallery. I’m running into multiple issues:

  1. When I try to install the plugin, I get the following error
    Repository “” checked out to git ref “master”.

  2. I copied the imagepicker.js and referenced it just after ngCordova in my index.html. Then I get the error Cordova not defined when cordova.exec is called by the plugin.

Can you help me here. Can you point me to any working examples?

Thanks a ton,

First You need to configure git to install any project from git through cli.
Here is link for help you.Git-Basics-Getting-a-Git-Repository

  1. Now For Cordova Use These Commands for CLI.
    npm install -g cordova

Here Best Link For npm install cordova

Hope This Will help You.