msach22 / opentok-ionic-samples

0 stars 0 forks source link

Getting error installing pakage #2

Open apu248 opened 6 years ago

apu248 commented 6 years ago

ionic cordova plugin add https://github.com/msach22/cordova-plugin-opentok/

cordova plugin add https://github.com/msach22/cordova-plugin-opentok/ --save 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 ENOGIT npm ERR! No git binary found in $PATH npm ERR! npm ERR! Failed using git. npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Vaibhav\AppData\Roaming\npm-cache_logs\2017-11-30T11_01_45_338Z-debug.log

[ERROR] An error occurred while running cordova plugin add https://github.com/msach22/cordova-plugin-opentok/ --save (exit code 1).

msach22 commented 6 years ago

Hi @apu248 I just tested installing the plugin and I'm able to do so. Did you create an Ionic project using ionic start {appName}? Could you try creating a fresh Ionic project and try installing the plugin?

yelji commented 4 years ago

Failed to install 'com.tokbox.cordova.opentok': CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it. at Context.requireCordovaModule (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15) at module.exports (/Users/lavangiri/Downloads/for ios/plugins/com.tokbox.cordova.opentok/scripts/downloadiOSSDK.js:7:21) at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:32) at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:136:12) at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:108:40

I got this error