angularjs – 无法找到适合的角度安装的版本

前端之家收集整理的这篇文章主要介绍了angularjs – 无法找到适合的角度安装的版本前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我设置了我的Angular应用程序,所以当它推到Heroku它运行bower安装。但是,我得到的错误,由于版本问题。

当我运行本地安装bower时,我得到如下:

  1. Unable to find a suitable version for angular,please choose one:
  2. 1) angular#1.2.16 which resolved to 1.2.16 and is required by angular-resource#1.2.16
  3. 2) angular#1.2.23 which resolved to 1.2.23 and is required by angular-cookies#1.2.23
  4. 3) angular#>= 1.0.8 which resolved to 1.2.25 and is required by angular-ui-router#0.2.10
  5. 4) angular#^1 which resolved to 1.2.25 and is required by angular-ui-codemirror#0.1.6
  6. 5) angular#~1.2.2 which resolved to 1.2.25 and is required by splitter#f5c2195050
  7. 6) angular#>=1.0.6 which resolved to 1.2.25 and is required by angular-elastic#2.4.0
  8. 7) angular#~1.2 which resolved to 1.2.25 and is required by angular-nanoscroller#0.2.1
  9. 8) angular#~1.2.9 which resolved to 1.2.25 and is required by angular-sockjs#0.0.1Prefix the choice with ! to persist it to bower.json
  10.  
  11. ? Answer::

我应该怎么做 – 我实际上需要版本1.3的Angular,因为debounce功能

我的bower.json看起来像这样:

  1. {
  2. "name": "myapp","version": "0.0.1","dependencies": {
  3. "json3": "~3.3.1","es5-shim": "~3.1.0","angular-resource": "1.2.16","angular-sanitize": "1.2.16","angular-animate": "1.2.16","angular-ui-router": "~0.2.10","jquery": "~2.1.1","angular-ui-codemirror": "~0.1.6","splitter": "*","angular-cookies": "~1.2.23","angular-elastic": "~2.4.0","angular-local-storage": "~0.0.7","chance": "~0.5.6","nanoscroller": "~0.8.4","angular-nanoscroller": "~0.2.1","angular-sockjs": "~0.0.1"
  4. }
  5. }
将当前的角度依赖项更新为1.3.x,并为angular添加分辨率以抑制提示
  1. {
  2. "name": "myapp","dependencies": {
  3. "angular": "~1.3.x","angular-animate": "~1.3.x","angular-cookies": "~1.3.x","angular-resource": "~1.3.x","angular-sanitize": "~1.3.x","angular-sockjs": ">=0.0.1","json3": "~3.3.1","nanoscroller": "~0.8.4"
  4. },"resolutions": {
  5. "angular": "~1.3.x"
  6. }
  7. }

猜你在找的Angularjs相关文章