cordova-plugin-presentation icon indicating copy to clipboard operation
cordova-plugin-presentation copied to clipboard

Can't add plugin to cordova

Open maximepriv opened this issue 7 years ago • 9 comments

Hi!

Whenever I try to add the plugin to my project using one of the two methods below, nothing happens (no error and no plugin added).

cordova plugin add de.fhg.fokus.famium.presentation cordova plugin add https://github.com/fraunhoferfokus/cordova-plugin-presentation.git

Any idea ?

screenshot

Thanks for your help!

maximepriv avatar Jan 18 '18 20:01 maximepriv

Hello @maximepriv, thanks for the message. Did you resolve it?

rodolv-commons avatar Apr 18 '18 08:04 rodolv-commons

Dear all, If I do cordova plugin add de.fhg.fokus.famium.presentation, I get the following:

withregistry

If I do directly pointing to the repo cordova plugin add https://github.com/fraunhoferfokus/cordova-plugin-presentation.git, I get the following:

repodirect

Anyone can help with that? Many thanks!

rodolv-commons avatar Apr 18 '18 09:04 rodolv-commons

Can you please give more details about Platform, OS Version, Cordova Version? did you tried to add the plugin in your App or in the Reference Hello World App http://fraunhoferfokus.github.io/cordova-plugin-presentation-helloapp/

louaybassbouss avatar Jun 29 '18 07:06 louaybassbouss

Maybe this help.

Download the zip and unzip it.
https://github.com/fraunhoferfokus/cordova-plugin-presentation-helloapp/zipball/master

Install plugman. npm install -g plugman

Go to the "fraunhoferfokus-cordova-plugin-presentation-439d62d" folder.

Create the package.json file for the plugin. plugman createpackagejson "fraunhoferfokus-cordova-plugin-presentation-439d62d

Go to your app folder and do a cordova add plugin. cordova plugin add "fraunhoferfokus-cordova-plugin-presentation-439d62d"

helpbox avatar Jul 03 '18 07:07 helpbox

You can specify the repo url as

cordova plugin add https://github.com/fraunhoferfokus/cordova-plugin-presentation.git --nofetch This worked for me.

kapilrc avatar Aug 09 '19 13:08 kapilrc

Go to the directory where the file is and execute the npm init command to generate the package.json file

zhangzsan avatar Sep 03 '19 01:09 zhangzsan

I was struggling with the same issue as @maximepriv. This worked for me:

$ cordova plugin add cordova-plugin-presentation

jmoniatte avatar Sep 05 '19 23:09 jmoniatte

How to import this plugin as module ? Anyone !

ayubUOL avatar Jan 29 '20 11:01 ayubUOL

  1. download the zip file with source and unzip it to a local folder
  2. the package.json is missing, you can just copy from somewhere and make the "id" correct.
  3. run command: cordova plugin add [path of the folder]

This works for me.

zhangv avatar Aug 17 '24 08:08 zhangv