Phonegap - 无法恢复插件 "io.litehelpers.cordova.sqlite"

Phonegap - Failed to restore plugin "io.litehelpers.cordova.sqlite"

我继承了一个仅包含 www 文件夹的 Phonegap 项目。 config.xml 包含此条目:

<plugin name="io.litehelpers.cordova.sqlite" source="pgb" />

当我 运行 cordova platform add androidcordova build 时,我收到此警告消息:

在 config.xml 中发现插件 "io.litehelpers.cordova.sqlite"。将其添加到项目中。无法从 config.xml 恢复插件 "io.litehelpers.cordova.sqlite"。您可能需要再次尝试添加它。错误:错误:注册表在 https://registry.npmjs.org/io.litehelpers.cordova.sqlite

上为 GET 返回 404

我使用命令 cordova plugin add cordova-sqlite-storage --save 添加了来自 https://github.com/litehelpers/Cordova-sqlite-storage 的 Sqlite 插件,然后 cordova prepare,然后继续执行上面的 运行,但仍然得到相同的警告留言。

这是我可以忽略的事情,还是我可以做些什么来解决它?谢谢!


编辑: 我正在使用 Cordova CLI 6.3.1

IIRC,这是旧的 PhoneGap Build 版本的 cordova-sqlite-storage 插件。 PhoneGap Build 已经转移到 npmjs 来托管插件,will be shutting down the old repository。您可能已经知道了:

<plugin name="cordova-sqlite-storage" source="npm" />

在您的 config.xml 文件中。如果是这样,只需删除该行:

<plugin name="io.litehelpers.cordova.sqlite" source="pgb" />

这样应该可以清除错误。