Reputation: 5268
I am trying to add plugin to cordova project using the command
$ cordova plugin add org.apache.cordova.inappbrowser
And am getting following error message
Fetching plugin from "org.apache.cordova.inappbrowser"...
[Error: Error fetching plugin: Error: error: Could not fetch package information for org.apache.cordova.inappbrowser]
An tried solution provided in following SO link :
Phonegap adding plugin using command line tool
Still am getting same error
Upvotes: 1
Views: 2917
Reputation: 403
I got the same error with my own plugins. Adding the package.json-file solved it for me.
Upvotes: 0
Reputation: 156
Try to add through following command.I have done that successfully
"cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git"(with no quotes).
And if you getting this error after installing git command line tool then you need to restart your MAC.
Upvotes: 6