videostream / cordova-chromecast

Chromecast running in Cordova
117 stars 58 forks source link

Unable to install plugin #66

Open bmshubham opened 7 years ago

bmshubham commented 7 years ago

Hi, I'm trying to install this plugin in my existing cordova project. My project currently doesn't have play service support. I'm using cordova 7.0.1 on my windows system. below are the error logs which I get just after running the add plugin command. i.e. cordova plugin add https://github.com/GetVideostream/cordova-chromecast.git

Error: Failed to fetch plugin https://github.com/GetVideostream/cordova-chromecast.git 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 4294963228 Error output: npm ERR! addLocal Could not install C:\Users\shash\AppData\Local\Temp\npm-5956-21293606\git-cache-5bcb71aa\81ebbf80ea2513395ef8d695c0d b612bd2e36e1a npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\shash\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "ins tall" "https://github.com/GetVideostream/cordova-chromecast.git" "--save" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code EISDIR npm ERR! errno -4068 npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read npm ERR! eisdir This is most likely not a problem with npm itself npm ERR! eisdir and is related to npm not being able to find a package.json in npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request: npm ERR! D:\Shashank\Cordova\Gazebo\Gazebo-New\node_modules\npm-debug.log

dabder commented 7 years ago

Hi,

I've got the same issue, package.json is missing.

Would you please apply the pending pull request?

Thanks

dabder commented 7 years ago

HI users!

I forked this project and fix a couple of issues: https://github.com/dabder/cordova-chromecast-1

Works out of the box with latest Cordova (7.0.1) Enjoy

bmshubham commented 7 years ago

Do @dabder you've any running sample code to understand this easily.

dabder commented 7 years ago

I've just pushed my sandbox in the landing page.

This plugin implements Cast API v2 (not v3)