angularjs - Bower:无法找到适合 Angular 的版本

标签 angularjs twitter-bootstrap bower momentjs bower-install

感谢您的宝贵时间。

我遇到了“无法找到适合 Angular 的版本”这个问题,我不知道该怎么办,因为我有很多选择,如果你处于我的位置,在这种情况下你会做什么?

这是我的 Bower.json 文件:

{
  "name": "365HW",
  "version": "0.0.0",
  "dependencies": {
    "angular": "~1.4.x",
    "bootstrap": "~3.x",
    "angular-cookies": "~1.4.0",
    "angular-resource": "~1.4.0",
    "angular-route": "~1.4.0",
    "angular-sanitize": "~1.4.0",
    "bootstrap-validator": "~0.9.0",
    "angular-bootstrap": "latest",
    "angular-animate": "latest",
    "jquery": "~2.1.x",
    "angular-messages": "latest",
    "angular-ui-validate": "latest",
    "angular-local-storage": "~0.2.3",
    "moment": "~2.11",
    "angular-moment": "1.x.x"
  }
}

C:\wamp\www\365HW> bower 安装

bower angular-resource#~1.4.0   cached git://github.com/angular/bower-angular-resource.git#1.4.9
bower angular-resource#~1.4.0 validate 1.4.9 against git://github.com/angular/bower-angular-resource.git#~1.4.0
bower angular#~1.4.x            cached git://github.com/angular/bower-angular.git#1.4.9
bower angular#~1.4.x          validate 1.4.9 against git://github.com/angular/bower-angular.git#~1.4.x
bower bootstrap#~3.x            cached git://github.com/twbs/bootstrap.git#3.3.6
bower bootstrap#~3.x          validate 3.3.6 against git://github.com/twbs/bootstrap.git#~3.x
bower angular-sanitize#~1.4.0   cached git://github.com/angular/bower-angular-sanitize.git#1.4.9
bower angular-sanitize#~1.4.0 validate 1.4.9 against git://github.com/angular/bower-angular-sanitize.git#~1.4.0
bower angular-cookies#~1.4.0    cached git://github.com/angular/bower-angular-cookies.git#1.4.9
bower angular-cookies#~1.4.0  validate 1.4.9 against git://github.com/angular/bower-angular-cookies.git#~1.4.0
bower angular-route#~1.4.0      cached git://github.com/angular/bower-angular-route.git#1.4.9
bower angular-route#~1.4.0    validate 1.4.9 against git://github.com/angular/bower-angular-route.git#~1.4.0
bower bootstrap-validator#~0.9.0           cached git://github.com/1000hz/bootstrap-validator.git#0.9.0
bower bootstrap-validator#~0.9.0         validate 0.9.0 against git://github.com/1000hz/bootstrap-validator.git#~0.9.0
bower moment#~2.11                         cached git://github.com/moment/moment.git#2.11.2
bower moment#~2.11                       validate 2.11.2 against git://github.com/moment/moment.git#~2.11
bower angular-moment#1.x.x                 cached git://github.com/urish/angular-moment.git#1.0.0-beta.4
bower angular-moment#1.x.x               validate 1.0.0-beta.4 against git://github.com/urish/angular-moment.git#1.x.x
bower angular-ui-validate#*                cached git://github.com/angular-ui/ui-validate.git#1.2.2
bower angular-ui-validate#*              validate 1.2.2 against git://github.com/angular-ui/ui-validate.git#*
bower angular-bootstrap#*                  cached git://github.com/angular-ui/bootstrap-bower.git#1.2.2
bower angular-bootstrap#*                validate 1.2.2 against git://github.com/angular-ui/bootstrap-bower.git#*
bower angular-local-storage#~0.2.3         cached git://github.com/grevory/angular-local-storage.git#0.2.5
bower angular-local-storage#~0.2.3       validate 0.2.5 against git://github.com/grevory/angular-local-storage.git#~0.2.3
bower angular-messages#*                   cached git://github.com/angular/bower-angular-messages.git#1.5.0
bower angular-messages#*                 validate 1.5.0 against git://github.com/angular/bower-angular-messages.git#*
bower angular-animate#*                    cached git://github.com/angular/bower-angular-animate.git#1.5.0
bower angular-animate#*                  validate 1.5.0 against git://github.com/angular/bower-angular-animate.git#*
bower jquery#~2.1.x                        cached git://github.com/jquery/jquery-dist.git#2.1.4
bower jquery#~2.1.x                      validate 2.1.4 against git://github.com/jquery/jquery-dist.git#~2.1.x
bower jquery#>= 1.8.3                      cached git://github.com/jquery/jquery-dist.git#2.2.1
bower jquery#>= 1.8.3                    validate 2.2.1 against git://github.com/jquery/jquery-dist.git#>= 1.8.3
bower jquery#1.9.1 - 2                     cached git://github.com/jquery/jquery-dist.git#2.2.1
bower jquery#1.9.1 - 2                   validate 2.2.1 against git://github.com/jquery/jquery-dist.git#1.9.1 - 2
bower angular-bootstrap#*                     new version for git://github.com/angular-ui/bootstrap-bower.git#*
bower angular-bootstrap#*                 resolve git://github.com/angular-ui/bootstrap-bower.git#*
bower angular-bootstrap#*                download https://github.com/angular-ui/bootstrap-bower/archive/1.2.4.tar.gz
bower angular#1.5.0                        cached git://github.com/angular/bower-angular.git#1.5.0
bower angular#1.5.0                      validate 1.5.0 against git://github.com/angular/bower-angular.git#1.5.0
bower angular-bootstrap#*                 extract archive.tar.gz
bower angular-bootstrap#*                resolved git://github.com/angular-ui/bootstrap-bower.git#1.2.4

Unable to find a suitable version for angular, please choose one:
    1) angular#1.4.9 which resolved to 1.4.9 and is required by angular-cookies#1.4.9, angular-resource#1.4.9, angular-route#1.4.9, angular-
sanitize#1.4.9
    2) angular#~1.4.x which resolved to 1.4.9 and is required by 365HW
    3) angular#>=1.2.0 <1.6.0 which resolved to 1.4.9 and is required by angular-moment#1.0.0-beta.4
    4) angular#^1.x which resolved to 1.4.9 and is required by angular-local-storage#0.2.5
    5) angular#>= 1.3.0 which resolved to 1.4.9 and is required by angular-ui-validate#1.2.2
    6) angular#>=1.4.0 which resolved to 1.4.9 and is required by angular-bootstrap#1.2.4
    7) angular#1.5.0 which resolved to 1.5.0 and is required by angular-animate#1.5.0, angular-messages#1.5.0

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

? Answer

谢谢!

最佳答案

任何答案都可以,只需写!1,一切仍然可以正常工作。

关于angularjs - Bower:无法找到适合 Angular 的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35844652/

相关文章:

javascript - 如何在使用 jQuery 进行实时搜索时隐藏 div

bower - 如何知道何时使用 bower 的新软件包版本?

javascript - 如何使用 '=' 定义 Angular 范围的函数?

javascript - Auth 时有关 Angular ui-router 的问题

angularjs - 从 typeahead 中选择一个值显示 Objec 对象

javascript - 单击时将 Bootstrap div 展开至整行

javascript - Angular 嵌套过滤器和无限 $digest 循环

html - 图像在较小屏幕上移动到导航栏上

javascript - 在上面的目录中找不到bower_components

bower - 如何通过 bower 安装 font-awesome