Microsoft Windows [版本 10.0.10586]
(c) Microsoft Corporation。保留所有权利。
C:\Users\admin>e:
E:\>cd e:\Ion
e:\Ion>cd oneAPP
e:\Ion\oneAPP>cordova plugin
cordova-plugin-console 1.0.4 "Console"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
cordova-sqlite-plugin 3.1.1 "Cordova SQLite Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
e:\Ion\oneAPP>cordova plugin add io.litehelpers.cordova.sqlitestorage
Error: Registry returned 404 for GET on /io.litehelpers.cordova.sqlitestorage
执行这个安装sqlite报错,想到可能是被墙奸了,所以下面的使用代理。。。。
e:\Ion\oneAPP>cordova plugin add /brodysoft/Cordova-SQLitePlugin.Git
Fetching plugin "/brodysoft/Cordova-SQLitePlugin.Git" via git clone
Error: Failed to fetch plugin /brodysoft/Cordova-SQLitePlugin.Git via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: C:\Program Files\Git\cmd\git.exe: Command failed with exit code 128 Error output:
Cloning into 'C:\Users\admin\AppData\Local\Temp\git\1482280361475'...
Logon failed, use ctrl+c to cancel basic credential prompt.
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for '/': Invalid argument
第一次报错。。。无奈中,,看到有用git命令行的,寻思要不要试下,再运行下上面的指令。。。好了(如下:
e:\Ion\oneAPP>cordova plugin add /brodysoft/Cordova-SQLitePlugin.git
Fetching plugin "/brodysoft/Cordova-SQLitePlugin.git" via git clone
Repository "/brodysoft/Cordova-SQLitePlugin.git" checked out to git ref "master".
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm
npm install of external dependencies ok
Error during processing of action! Attempting to revert...
Failed to install 'cordova-sqlite-storage':CordovaError: Uh oh!
"e:\Ion\oneAPP\platforms\android\src\io\sqlc\SQLitePlugin.java" already exists!
at copyNewFile (e:\Ion\oneAPP\platforms\android\cordova\lib\pluginHandlers.js:232:15)
at handlers.source-file.install (e:\Ion\oneAPP\platforms\android\cordova\lib\pluginHandlers.js:37:17)
at Object.ActionStack.process (e:\Ion\oneAPP\platforms\android\cordova\node_modules\cordova-common\src\ActionStack.js:56:25)
at PluginManager.doOperation (e:\Ion\oneAPP\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:117:20)
at PluginManager.addPlugin (e:\Ion\oneAPP\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:147:17)
at Api.addPlugin (e:\Ion\oneAPP\platforms\android\cordova\Api.js:198:10)
at handleInstall (C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:611:6)
at C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:407:28
at _fulfilled (C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30)
Error: Uh oh!
"e:\Ion\oneAPP\platforms\android\src\io\sqlc\SQLitePlugin.java" already exists!
存在了就不管了吧,,下面按准过pouchdb,这个是我的问题所在,因为ionic默认早node_modules下有pouchBD,所以上次安装,如此报错之后我直接从项目中,找到这个文件,就直接引用了,其实,应该是安装这个之后,把文件放到www-lib下,这样打包后能同时生成了,(3M-5M)
e:\Ion\oneAPP>bower install pouchdb
bower invalid-meta for:e:\Ion\oneAPP\bower.json
bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
bower not-cached /driftyco/ionic-bower.git#1.3.2
bower resolve /driftyco/ionic-bower.git#1.3.2
bower not-cached /pouchdb/pouchdb.git#*
bower resolve /pouchdb/pouchdb.git#*
bower download /driftyco/ionic-bower/archive/v1.3.2.tar.gz
bower download /pouchdb/pouchdb/archive/6.1.0.tar.gz
bower progress ionic#1.3.2 received 0.7MB of 1.4MB downloaded, 46%
bower progress pouchdb#* received 0.5MB of 1.0MB downloaded, 47%
bower progress ionic#1.3.2 received 0.9MB of 1.4MB downloaded, 62%
bower progress ionic#1.3.2 received 0.9MB of 1.4MB downloaded, 65%
bower progress pouchdb#* received 0.7MB of 1.0MB downloaded, 64%
bower progress ionic#1.3.2 received 1.2MB of 1.4MB downloaded, 81%
bower progress pouchdb#* received 0.7MB of 1.0MB downloaded, 65%
bower progress ionic#1.3.2 received 1.4MB of 1.4MB downloaded, 97%
bower extract ionic#1.3.2 archive.tar.gz
bower progress pouchdb#* received 0.7MB of 1.0MB downloaded, 65%
bower invalid-meta for:C:\Users\admin\AppData\Local\Temp\admin-PC-admin\bower\bf2802b39384aa9e0b0a44f3fe9ee12a-4456-cJQoiX\bower.json
bower invalid-meta The "main" field cannot contain globs (example: "*.js")
bower invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .js files: ["js/ionic.js","js/ionic-angular.js"]
bower resolved /driftyco/ionic-bower.git#1.3.2
bower progress pouchdb#* received 0.7MB of 1.0MB downloaded, 70%
bower not-cached /angular/bower-angular.git#1.5.3
bower resolve /angular/bower-angular.git#1.5.3
bower not-cached /angular/bower-angular-sanitize.git#1.5.3
bower resolve /angular/bower-angular-sanitize.git#1.5.3
bower not-cached /angular-ui/angular-ui-router-bower.git#0.2.13
bower resolve /angular-ui/angular-ui-router-bower.git#0.2.13
bower not-cached /angular/bower-angular-animate.git#1.5.3
bower resolve /angular/bower-angular-animate.git#1.5.3
bower progress pouchdb#* received 0.8MB of 1.0MB downloaded, 82%
bower progress pouchdb#* received 1.0MB of 1.0MB downloaded, 95%
bower extract pouchdb#* archive.tar.gz
bower download /angular-ui/angular-ui-router-bower/archive/0.2.13.tar.gz
bower resolved /pouchdb/pouchdb.git#6.1.0
bower download /angular/bower-angular-animate/archive/v1.5.3.tar.gz
bower extract angular-ui-router#0.2.13 archive.tar.gz
bower download /angular/bower-angular/archive/v1.5.3.tar.gz
bower resolved /angular-ui/angular-ui-router-bower.git#0.2.13
bower download /angular/bower-angular-sanitize/archive/v1.5.3.tar.gz
bower extract angular-animate#1.5.3 archive.tar.gz
bower resolved /angular/bower-angular-animate.git#1.5.3
bower extract angular-sanitize#1.5.3 archive.tar.gz
bower resolved /angular/bower-angular-sanitize.git#1.5.3
bower extract angular#1.5.3 archive.tar.gz
bower resolved /angular/bower-angular.git#1.5.3
bower install ionic#1.3.2
bower skipped ionic was not installed because there is already a non-bower directory with that name in the components directory (www\lib\ionic). You can force installation with --force.
bower install pouchdb#6.1.0
bower install angular-ui-router#0.2.13
bower install angular-animate#1.5.3
bower install angular-sanitize#1.5.3
bower install angular#1.5.3
ionic#1.3.2 C:\Users\admin\AppData\Local\bower\cache\packages\75785deacc09255f971c33542b04c50a\1.3.2
├── angular#1.5.3
├── angular-animate#1.5.3
├── angular-sanitize#1.5.3
└── angular-ui-router#0.2.13
pouchdb#6.1.0 www\lib\pouchdb
angular-ui-router#0.2.13 www\lib\angular-ui-router
└── angular#1.5.3
angular-animate#1.5.3 www\lib\angular-animate
└── angular#1.5.3
angular-sanitize#1.5.3 www\lib\angular-sanitize
└── angular#1.5.3
angular#1.5.3 www\lib\angular
e:\Ion\oneAPP>