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

Failed to fetch plugin

Open joancolmenerodev opened this issue 7 years ago • 7 comments

I've created an Ionic2 project and I'm trying to implement this plugin on it, but when I try to install the plugin with this command : ionic cordova plugin add https://github.com/songz/cordova-plugin-opentok/ it says this :

image

What I'm missing?

joancolmenerodev avatar Oct 04 '17 14:10 joancolmenerodev

@joancolmenerodev You can use the updated version of the plugin available here: https://github.com/opentok/cordova-plugin-opentok

For an Ionic sample app, check out this repo: https://github.com/msach22/opentok-ionic-samples

msach22 avatar Nov 29 '17 06:11 msach22

It still saying to me this : Error: Failed to fetch plugin https://github.com/msach22/cordova-plugin-opentok/ 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 128 npm ERR! Command failed: E:\Git\cmd\git.EXE submodule update -q --init --recursive npm ERR! fatal: 'submodule' appears to be a git command, but we were not npm ERR! able to execute it. Maybe git-submodule is broken? npm ERR! [ERROR] An error occurred while running cordova plugin add https://github.com/msach22/cordova-plugin-opentok/ --save (exit code 1).

joancolmenerodev avatar Dec 01 '17 15:12 joancolmenerodev

@joancolmenerodev I just tested installing the plugin and I'm able to download it without any issues. Did you create an Ionic project using ionic start {appName}? Could you try creating a fresh Ionic project and try installing the plugin? If you still see this persist, I recommend cloning the following repo: https://github.com/opentok/opentok-ionic-samples and testing out the Basic-Video-Chat sample.

I've also moved the plugin over to the OpenTok GitHub Organization so if you want to use the latest plugin, please check: https://github.com/opentok/cordova-plugin-opentok

msach22 avatar Dec 01 '17 16:12 msach22

Yes, indeed, I've created a new Ionic project to test it. Your sample is Video-Chat, I can use only VoIP? And I have for example a apiKey to test it?

joancolmenerodev avatar Dec 01 '17 16:12 joancolmenerodev

@joancolmenerodev Were you able to install the plugin correctly? You can do a VOIP call by setting the publishVideo publisher property to false or setting videoSource property to false. If you set videoSource to false, you cannot change to the video state later in the session, however, if you set the publishVideo property to false, you can publish video later: https://github.com/opentok/cordova-plugin-opentok/blob/master/docs/ot.md#initPublisher

msach22 avatar Dec 04 '17 18:12 msach22

capture21

I have the same issue when I use: ionic cordova plugin add https://github.com/opentok/cordova-plugin-opentok/ either from fresh ionic project or clone the repo: https://github.com/opentok/opentok-ionic-samples. Any advise to go on, please.

apicpich avatar Dec 16 '17 13:12 apicpich

@apicpich I'm not able to reproduce this issue and I'm starting with a fresh Ionic project as well. Node version: 8.4.0 NPM version: 5.2.0 Ionic CLI version: 3.10.3

msach22 avatar Dec 19 '17 05:12 msach22