I've inherited a Phonegap project that just contained the www
folder. The config.xml
contains this entry:
<plugin name="io.litehelpers.cordova.sqlite" source="pgb" />
When I run cordova platform add android
or cordova build
, I get this warning message:
Discovered plugin "io.litehelpers.cordova.sqlite" in config.xml. Adding it to the project. Failed to restore plugin "io.litehelpers.cordova.sqlite" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/io.litehelpers.cordova.sqlite
I added the Sqlite plugin from https://github.com/litehelpers/Cordova-sqlite-storage using the command cordova plugin add cordova-sqlite-storage --save
, then cordova prepare
, and then proceeded to run the above, but still get the same warning message.
Is this something I can ignore, or is there something I can do to resolve it? Thank you!
EDIT: I am using Cordova CLI 6.3.1
IIRC, that's the old PhoneGap Build version of the cordova-sqlite-storage plugin. PhoneGap Build has since moved to npmjs for hosting plugins, and will be shutting down the old repository. You've probably already got the line:
<plugin name="cordova-sqlite-storage" source="npm" />
In your config.xml
file. If so, just remove the line:
<plugin name="io.litehelpers.cordova.sqlite" source="pgb" />
And that should clear the error.