Can not install ngCordova on ionic project

Hello all,

I’m having an issue when I try to install ngCordova. I’m really new in mobile development and I can’t figure out what’s happening. This is the error I get every time I try to install ngCordova with the command ‘bower install ngCordova --save’:

λ bower install ngCordova --save
bower invalid-meta The “name” is recommended to be lowercase, can contain digits, dots, dashes
bower ionic#1.3.0 not-cached git://github.com/driftyco/ionic-bower.git#1.3.0
bower ionic#1.3.0 resolve git://github.com/driftyco/ionic-bower.git#1.3.0
bower ngCordova#* not-cached https://github.com/driftyco/ng-cordova.git#*
bower ngCordova#* resolve https://github.com/driftyco/ng-cordova.git#*
bower ionic#1.3.0 ENORESTARGET No tag found that was able to satisfy 1.3.0

Additional error details:
Available versions in git://github.com/driftyco/ionic-bower.git: 1.2.4, 1.2.4-nightly-2994, 1.2.4-nightly-2990, 1.2.4-nightly-2989, 1.2.4-nightly-2988, 1.2.4-nightly-2983, 1.2.4-nightly-2959, 1.2.4-nightly-2933, 1.2.4-nightly-2932, 1.2.4-nightly-2897, 1.2.4-nightly-2890, 1.2.4-nightly-2882, 1.2.4-nightly-2877, 1.2.4-nightly-2854, 1.2.4-nightly-2853, 1.2.4-nightly-2826, 1.2.4-nightly-2825, 1.2.4-nightly-2813, 1.2.4-nightly-2811, 1.2.4-nightly-2775, 1.2.4-nightly-2772, 1.2.4-nightly-2707, 1.2.4-nightly-2696, 1.2.4-nightly-2613, 1.2.4-nightly-2608, 1.2.4-nightly-2512, 1.2.4-nightly-2491, 1.2.4-nightly-2445, 1.2.4-nightly-2436, 1.2.4-nightly-2435, 1.2.4-nightly-2425, 1.2.4-nightly-2332, 1.2.4-nightly-2253, 1.2.4-nightly-2249, 1.2.4-nightly-2146, 1.2.4-nightly-2111, 1.2.4-nightly-2053, 1.2.4-nightly-2052, 1.2.4-nightly-2026, 1.2.4-ni…

Any suggestion? Thanks in advance.

Node version: 4.4.4 (I tryed before with 5.9.1, same result)
Npm version: 2.15.1
Bower version: 1.7.9
OS: windows 10

If I donwgrade to ionic 1.2.4, i get this output:

λ bower install
bower invalid-meta The “name” is recommended to be lowercase, can contain digits, dots, dashes
bower ionic#1.2.4 not-cached git:// github. com/driftyco/ionic-bower.git#1.2.4
bower ionic#1.2.4 resolve git:// github .com/driftyco/ionic-bower.git#1.2.4
bower ionic#1.2.4 download https:// github. com/driftyco/ionic-bower/archive/v1.2.4.tar.gz
bower ionic#1.2.4 extract archive.tar.gz
bower ionic#1.2.4 invalid-meta The “main” field cannot contain globs (example: “*.js”)
bower ionic#1.2.4 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 ionic#1.2.4 mismatch Version declared in the json (1.2.4-nightly-1917) is different than the resolved one (1.2.4)
bower ionic#1.2.4 resolved git://github.com/driftyco/ionic-bower.git#1.2.4
bower angular-sanitize#1.4.3 not-cached GitHub - angular/bower-angular-sanitize: angular-sanitize bower repo
bower angular-sanitize#1.4.3 resolve GitHub - angular/bower-angular-sanitize: angular-sanitize bower repo
bower angular-ui-router#0.2.13 not-cached https:// github. com/angular-ui/angular-ui-router-bower.git#0.2.13
bower angular-ui-router#0.2.13 resolve https:// github. com/angular-ui/angular-ui-router-bower.git#0.2.13
bower angular#1.4.3 not-cached https:// github. com/angular/bower-angular.git#1.4.3
bower angular#1.4.3 resolve https:// GitHub - angular/bower-angular: Bower package for AngularJS
bower angular-animate#1.4.3 not-cached https:// GitHub - angular/bower-angular-animate: Bower package for the AngularJS animation module
bower angular-animate#1.4.3 resolve https:// GitHub - angular/bower-angular-animate: Bower package for the AngularJS animation module
bower angular#1.4.3 checkout v1.4.3
bower angular-sanitize#1.4.3 checkout v1.4.3
bower angular-animate#1.4.3 checkout v1.4.3
bower angular-sanitize#1.4.3 resolved https:// GitHub - angular/bower-angular-sanitize: angular-sanitize bower repo
bower angular#1.4.3 resolved https:// GitHub - angular/bower-angular: Bower package for AngularJS
bower angular-animate#1.4.3 resolved https:// GitHub - angular/bower-angular-animate: Bower package for the AngularJS animation module
bower angular-ui-router#0.2.13 ENORESTARGET No tag found that was able to satisfy 0.2.13

Additional error details:
No versions found in GitHub - angular-ui/angular-ui-router-bower: Bower publishing for Angular UI-Router for ng1

The problem aparently seems to be related to ionic itself…

Any idea?

I got the same error. But when i specified ng cordova version in bower.json file
and run the command
bower install
it works for me
:slight_smile:
“ngCordova”: “0.1.26-alpha”

Hi bittusinghintruder, thank you for the answer. I tested it and it doesn’t work for me :(, same result. Even if I try ‘bower install’ only with the ionic dependency, it doesn’t work:

λ bower install
bower invalid-meta The “name” is recommended to be lowercase, can contain digits, dots, dashes
bower ionic#1.2.4 cached git://github.com/driftyco/ionic-bower.git#1.2.4
bower ionic#1.2.4 validate 1.2.4 against git://github.com/driftyco/ionic-bower.git#1.2.4
bower angular-ui-router#0.2.13 not-cached GitHub - angular-ui/angular-ui-router-bower: Bower publishing for Angular UI-Router for ng1
bower angular-ui-router#0.2.13 resolve GitHub - angular-ui/angular-ui-router-bower: Bower publishing for Angular UI-Router for ng1
bower angular-sanitize#1.4.3 cached GitHub - angular/bower-angular-sanitize: angular-sanitize bower repo
bower angular-sanitize#1.4.3 validate 1.4.3 against GitHub - angular/bower-angular-sanitize: angular-sanitize bower repo
bower angular-animate#1.4.3 cached GitHub - angular/bower-angular-animate: Bower package for the AngularJS animation module
bower angular-animate#1.4.3 validate 1.4.3 against GitHub - angular/bower-angular-animate: Bower package for the AngularJS animation module
bower angular#1.4.3 cached GitHub - angular/bower-angular: Bower package for AngularJS
bower angular#1.4.3 validate 1.4.3 against GitHub - angular/bower-angular: Bower package for AngularJS
bower angular-ui-router#0.2.13 ENORESTARGET No tag found that was able to satisfy 0.2.13

Additional error details:
No versions found in GitHub - angular-ui/angular-ui-router-bower: Bower publishing for Angular UI-Router for ng1

I don’t know if the problem could be related to git client, node, or with ionic…

This is the contents of my bower.json file:

{
“name”: “HelloIonic”,
“private”: “true”,
“devDependencies”: {
“ionic”: “driftyco/ionic-bower#1.2.4”
}
}

Well, I found a solution…

I usually use Cmder as console when I need to type cli commands. I know this console emulator have its own git client (really don’t know if it has something to do with). I’ve typed the command in the standard console (cmd.exe) and it worked fine!

Regards

Sounds cool… All the best.

hello
excuse me, where I can found “bower.json file” I’m trying this “bower install -g ngCordova” but I get the same error “bower EINVALID Name must be lowercase, can contain digits, dots, dashes, “@” or spaces”
I am beginning to learn ionic.
I´m using version 3.20 from ionic
I´m using version 8.0.0 from cordova
I´m using version 1.8.4 from bower
please if you can help me I will be grateful to you