Facing Trouble in plugin installation from Git


#1

Hi, I’ve a plugin files written by some developer, now I want to use that plugin in Ionic v3 app. So I uploaded the plugin files to gitlab private repo to install it in my ionic app using command.

ionic cordova plugin add plugin_name

But faced an error which states

> cordova plugin add https://gitlab.com/ayubbscs/sakura-plugin.git --save
(node:3200) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to fetch plugin https://gitlab.com/ayubbscs/sakura-plugin.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 ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\AyuB IdreeS\AppData\Roaming\npm-cache\_logs\2018-04-01T17_49_44_652Z-debug.log

My internet connection is good and I think not a URL issue.
Don’t know if the private protection of the repo is causing the issue or plugin files.

If anyone can help about sorting out the problem, I really appreciate that
Thanks in advance


#2

Cordova is probably also getting the login page instead of the repo. ButI have no idea how to work around that. Should probably have a look at the Cordova docs (or ask at their Slack).