cordova 的 Chromecast 插件安装失败

Chromecast pluggin for cordova fails to install

我正在尝试用 cordova 编写一个 chromecast 应用

我安装了 android sdk,cordova v 4.1.2

我运行了这个命令 cordova plugin add https://github.com/GetVideostream/cordova-chromecast.git

Fetching plugin "https://github.com/GetVideostream/cordova-chromecast.git" via git clone
Installing "acidhax.cordova.chromecast" for android
Found Android SDK at /opt/android-sdk-linux
Executing /opt/android-sdk-linux/tools/android update lib-project -p ./platforms/android/AppCompatLib ...
Failed to install 'acidhax.cordova.chromecast':Error: spawn EMFILE
        at errnoException (child_process.js:988:11)
        at ChildProcess.spawn (child_process.js:935:11)
        at exports.spawn (child_process.js:723:9)
        at Object.exports.execFile (child_process.js:607:15)
        at exports.exec (child_process.js:578:18)
        at execCommand (/home/tholum/Documents/Projects/MyApp/plugins/acidhax.cordova.chromecast/init-playservices-dependencies.js:44:13)
        at prepareLibraryProject (/home/tholum/Documents/Projects/MyApp/plugins/acidhax.cordova.chromecast/init-playservices-dependencies.js:73:5)
        at Object.<anonymous> (/home/tholum/Documents/Projects/MyApp/plugins/acidhax.cordova.chromecast/init-playservices-dependencies.js:170:1)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
    Error: spawn EMFILE
        at errnoException (child_process.js:988:11)
        at ChildProcess.spawn (child_process.js:935:11)
        at exports.spawn (child_process.js:723:9)
        at Object.exports.execFile (child_process.js:607:15)
        at exports.exec (child_process.js:578:18)
        at execCommand (/home/tholum/Documents/Projects/MyApp/plugins/acidhax.cordova.chromecast/init-playservices-dependencies.js:44:13)
        at prepareLibraryProject (/home/tholum/Documents/Projects/MyApp/plugins/acidhax.cordova.chromecast/init-playservices-dependencies.js:73:5)
        at Object.<anonymous> (/home/tholum/Documents/Projects/MyApp/plugins/acidhax.cordova.chromecast/init-playservices-dependencies.js:170:1)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)

这里是插件的开发者!我看到你已经解决了这个问题。参考决议link: https://github.com/GetVideostream/cordova-chromecast/issues/38