MobileChromeApps / cordova-plugin-service-worker

163 stars 37 forks source link

Installation fails because of PromisesPlugin dependency. #14

Open runspired opened 9 years ago

runspired commented 9 years ago

Running cordova plugin add cordova-plugin-service-worker --save fails due to upstream configuration error.

Saved plugin info for "cordova-plugin-service-worker" to config.xml
Installing "cordova-plugin-service-worker" for ios
Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git clone
Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out to git ref "master".
Failed to install 'cordova-plugin-service-worker':Error: Expected plugin to have ID "com.vladstirbu.cordova.promise" but got "es6-promise-plugin".
runspired commented 9 years ago

You can resolve this by installing from master, but leaving this open until a patch release resolves it for normal installation.

brian-thompson commented 8 years ago

For future reference, that's

cordova plugin add https://github.com/MobileChromeApps/cordova-plugin-service-worker

As an utter newb at Cordova plugins, it took a while to get the command right.

runspired commented 8 years ago

@brian-thompson you don't need to install directly from github unless you want the latest master, using the name installs from npm.

brian-thompson commented 8 years ago

@runspired But trying to install from npm gives the error about the plugin IDs. Right?

cordova plugin add cordova-plugin-service-worker
...
Failed to install 'cordova-plugin-service-worker':Error: Expected plugin to have ID "com.vladstirbu.cordova.promise" but got "es6-promise-plugin"

Is there a different command I should be using instead?

petergoes commented 7 years ago

@runspired Could you elaborate on how the plugin should be installed if not directly from github?