Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to fetch plugin #239

Open
joancolmenerodev opened this issue Oct 4, 2017 · 7 comments
Open

Failed to fetch plugin #239

joancolmenerodev opened this issue Oct 4, 2017 · 7 comments

Comments

@joancolmenerodev
Copy link

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?

@msach22
Copy link
Contributor

msach22 commented Nov 29, 2017

@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

@joancolmenerodev
Copy link
Author

joancolmenerodev commented Dec 1, 2017

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).

@msach22
Copy link
Contributor

msach22 commented Dec 1, 2017

@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

@joancolmenerodev
Copy link
Author

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?

@msach22
Copy link
Contributor

msach22 commented Dec 4, 2017

@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

@apicpich
Copy link

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.

@msach22
Copy link
Contributor

msach22 commented Dec 19, 2017

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants