角与角动画模块亭子安装错误

角与角动画模块亭子安装错误

本文介绍了无法找到一个合适的版本,角与角动画模块亭子安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用角1.2.6 。我试图用凉亭安装和的。我试着安装(凉亭安装--save角动画),从1.2.16和1.2.17卸载在GitHub上一些时间和差异code。

I am using Angular 1.2.6. I am trying to use bower to install angular-animate and ngAnimate-animate.css. I've tried installing (bower install --save angular-animate), uninstalling several time and diff code on github from 1.2.16 and 1.2.17.

鲍尔一直希望安装旧版本的角动画1.2.16 角2.1.12 兼容。

Bower keeps wanting to install the older version of angular-animate 1.2.16 compatible with Angular 2.1.12.

安装角动画以及之后的所有的我擦肩而过人缘单元测试失败。

All of my passing karma unit tests fail after installing angular-animate as well.

我不断收到此错误。任何想法,为什么?

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:

我已经进入!1 !3 ,但没有成功之前。

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在SO问题。

推荐答案

两部分解决方案


  1. 有一个js文件,应用程序/ bower_components / ngAnimate-animate.css / animate.js 需要被添加到文件:在 karma.conf.js < / code>

  1. ngAnimate-animate has a js file, app/bower_components/ngAnimate-animate.css/animate.js that needs to be added to files: in karma.conf.js

凉亭信息角动画和安装特定的版本到你的角度版本。在这种情况下,凉亭安装角动画#1.2.6 --save

bower info angular-animate and install the version specific to your angular version. In this case, bower install angular-animate#1.2.6 --save

这篇关于无法找到一个合适的版本,角与角动画模块亭子安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 14:13