Vinodh
Vinodh

Reputation: 5268

Not able to add Plugin to phonegap Cordova 3.1.0

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

Answers (2)

Kiki
Kiki

Reputation: 403

I got the same error with my own plugins. Adding the package.json-file solved it for me.

Upvotes: 0

Minhaj
Minhaj

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

Related Questions