Need to install forked cordova plugin

I’m trying to install a forked cordova plugin using
ionic cordova plugin add https://github.com/baldodavi/cordova-plugin-ibeacon.git
obtaining this error

> cordova plugin add https://github.com/baldodavi/cordova-plugin-ibeacon.git --save
(node:5748) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to fetch plugin https://github.com/baldodavi/cordova-plugin-ibeacon.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! code 1
npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q --init --recursive
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 19: .: git-sh-setup: file not found
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Ionic2\AppData\Roaming\npm-cache\_logs\2018-03-30T11_14_26_959Z-debug.log
(node:5748) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js
process with a non-zero exit code.

Any help?
Thanks in advance.
David.

To clone the project:

git clone https://github.com/<project-name>.git

To add the plugin (the forked local copy) to your project:

cordova plugin add --link ../<project-name>

To remove the plugin from your project:

cordova plugin rm <project-name>

To check your project’s plugins:

ionic cordova plugin ls

first clear the cache npm.
npm cache clean -f
then use this link to add plugin

@Heenavora @robinyo
Well, my goal is install forked cordova ibeacon plugin, changes affects only a little part of android java code, continuing to use @ionic-native/ibeacon plugin to manage cordova plugin.
Do you know a way to do that?

I’ve already installed petermetz plugin but I need to change a behavior forced by the plugin on android app start.

Thanks for reply!

install it and make changes according to your need.