8

Sto usando Angular 1.2.6. Sto cercando di usare scrigno di installare angular-animate e ngAnimate-animate.css. Ho provato ad installare (bower install --save angular-animate), disinstallare più volte e il codice diff su GitHub dal 1.2.16 e 1.2.17.Impossibile trovare una versione adatta per angolare con l'errore di installazione gazebo per il modulo angolare-animate

Bower continua a voler installare la versione precedente di angular-animate 1.2.16 compatibile con Angular 2.1.12.

Tutti i miei test di unità che passa karma fallire dopo l'installazione angular-animate pure.

io continuo a ricevere questo errore. Tutte le idee perché?

bower angular-animate#*   cached git://github.com/angular/bower-angular-animate.git#1.2.16 
bower angular-animate#*  validate 1.2.16 against git://github.com/angular/bower-angular-animate.git#* 
bower angular#1.2.16   cached git://github.com/angular/bower-angular.git#1.2.16 
bower angular#1.2.16   validate 1.2.16 against git://github.com/angular/bower-angular.git#1.2.16 
bower angular#>=1    cached git://github.com/angular/bower-angular.git#1.2.16 
bower angular#>=1    validate 1.2.16 against git://github.com/angular/bower-angular.git#>=1 

Unable to find a suitable version for angular, please choose one: 
    1) angular#1.2.6 which resolved to 1.2.6 and is required by angular-cookies#1.2.6, angular-mocks#1.2.6, angular-resource#1.2.6, angular-route#1.2.6, angular-sanitize#1.2.6, angular-scenario#1.2.6, temp 
    2) angular#1.2.16 which resolved to 1.2.16 and is required by angular-animate#1.2.16 
    3) angular#>=1 which resolved to 1.2.16 and is required by angular-bootstrap#0.10.0 

Prefix the choice with ! to persist it to bower.json 

[?] Answer: 

ho inserito !1 e !3 prima senza successo.

bower.json

{ 
    "name": "temp", 
    "version": "0.0.0", 
    "dependencies": { 
    "angular": "1.2.6", 
    "json3": "~3.2.6", 
    "es5-shim": "~2.1.0", 
    "jquery": "~1.10.2", 
    "bootstrap": "~3.1.1", 
    "angular-resource": "1.2.6", 
    "angular-cookies": "1.2.6", 
    "angular-sanitize": "1.2.6", 
    "angular-route": "1.2.6", 
    "angular-bootstrap": "~0.10.0", 
    "angular-toggle-switch": "~0.3.0", 
    "angular-animate": "~1.2.16", 
    "ngAnimate-animate.css": "~0.1.1" 
    }, 
    "devDependencies": { 
    "angular-mocks": "1.2.6", 
    "angular-scenario": "1.2.6" 
    }, 
    "resolutions": { 
    "angular": ">=1" 
    } 
} 

Related question on SO.

Angular moved angular-animate out of core to it's own dependency in v1.2

risposta

12

Due soluzione parte

  1. ngAnimate-animate ha un file js,.210 che deve essere aggiunto al files: in karma.conf.js

  2. bower info angular-animate e installare la versione specifica per la versione angolare. In questo caso, bower install angular-animate#1.2.6 --save