1
我使用MINGW64 bash在Window上工作。我创建一个离子2项目,并添加以下行SQLite的插件:无法安装ionic2 SQLite插件
$ ionic plugin add cordova-sqlite-storage
当我跑我的项目,有: $离子服务--lab
我的项目启动并显示在Firefox ,但在我的控制台我有以下行:
Native: tried accessing the SQLite plugin but it's not installed. main.js
Install the SQLite plugin: 'ionic plugin add cordova-sqlite-storage' main.js
但是我没有在我的项目是“main.js”的文件,我只有它含有main.ts文件:
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
插件是否可以在Web浏览器上的仿真设备上运行?
这会有所帮助:[文件](https://github.com/litehelpers/Cordova-sqlite-storage#installing) –
@kcp,但在本示例中,它用于Ionic1,而不是Ionic2,不是吗? – Fred37b
你可能缺少'--save'。尝试'离子插件添加cordova-sqlite的 - 存储 - 保存' –