无法找到角度合适的版本 - 亭子安装 [英] Unable to find a suitable version for angular - bower install

查看:466
本文介绍了无法找到角度合适的版本 - 亭子安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了我的角应用程序,所以当它被推到Heroku的运行亭子安装。但是我得到的错误,由于版本问题。

当我运行亭子安装本地我得到这个psented $ P $:

 无法找到角度合适的版本,请选择一个:
    1)角#1.2.16这决定1.2.16,由角资源#1.2.16要求
    2)角#1.2.23这决定1.2.23,由角饼干#1.2.23要求
    3)角#> = 1.0.8它解析为1.2.25,是由角UI路由器#0.2.10要求
    4)角#^ 1,它解析为1.2.25,是由角UI- $ C $#CMIRROR需要0.1.6
    5)角#〜1.2.2这决定1.2.25,并通过分光器#f5c2195050要求
    6)角#> = 1.0.6它解析为1.2.25,是由角弹性#2.4.0要求
    7)角#〜1.2这决定1.2.25,由角nanoscroller#0.2.1要求
    8)角#〜1.2.9这决定1.2.25,由角sockjs#0.0.1 preFIX需要选择使用!坚持它bower.json?回答::

我应该做的有什么用 - 我真的需要因为去抖功能的角1.3版

我的 bower.json 是这样的:

  {
  名:的myapp
  版本:0.0.1
  依赖:{
    json3:〜3.3.1
    ES5-垫片:〜3.1.0
    角资源:1.2.16
    角的sanitize:1.2.16,
    角动画:1.2.16,
    角UI路由器:〜0.2.10
    jQuery的:〜2.1.1
    角UI- codeMIRROR:〜0.1.6
    分离器:*,
    角曲奇:〜1.2.23
    角弹性:〜2.4.0,
    角本地存储:〜0.0.7
    机会:〜0.5.6
    nanoscroller:〜0.8.4
    角nanoscroller:〜0.2.1,
    角sockjs:〜0.0.1
  }
}


解决方案

更新您的当前角依赖关系1.3.x中添加一个分辨率为角燮preSS提示:

  {
  名:的myapp
  版本:0.0.1
  依赖:{
    角:〜1.3.x中
    角动画:〜1.3.x中
    角曲奇:〜1.3.x中
    角资源:〜1.3.x中
    角的sanitize:〜1.3.x中
    角UI路由器:〜0.2.10
    角UI- codeMIRROR:〜0.1.6
    角弹性:〜2.4.0,
    角本地存储:〜0.0.7
    角nanoscroller:〜0.2.1,
    角sockjs:&GT = 0.0.1,
    json3:〜3.3.1
    ES5-垫片:〜3.1.0
    jQuery的:〜2.1.1
    分离器:*,
    机会:〜0.5.6
    nanoscroller:〜0.8.4
  },
  决议:{
    角:〜1.3.x的
  }
}

I have set up my Angular app so when it's pushed to Heroku it runs bower install. However I'm getting errors due to version issues.

When I run bower install locally I get presented with this:

Unable to find a suitable version for angular, please choose one:                                                                           
    1) angular#1.2.16 which resolved to 1.2.16 and is required by angular-resource#1.2.16                                                   
    2) angular#1.2.23 which resolved to 1.2.23 and is required by angular-cookies#1.2.23                                                    
    3) angular#>= 1.0.8 which resolved to 1.2.25 and is required by angular-ui-router#0.2.10                                                
    4) angular#^1 which resolved to 1.2.25 and is required by angular-ui-codemirror#0.1.6                                                   
    5) angular#~1.2.2 which resolved to 1.2.25 and is required by splitter#f5c2195050                                                       
    6) angular#>=1.0.6 which resolved to 1.2.25 and is required by angular-elastic#2.4.0                                                    
    7) angular#~1.2 which resolved to 1.2.25 and is required by angular-nanoscroller#0.2.1                                                  
    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  

? Answer::  

What should I do with this - I actually need version 1.3 of Angular because of the debounce feature

My bower.json looks like this:

{
  "name": "myapp",
  "version": "0.0.1",
  "dependencies": {
    "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"
  }
}

解决方案

Update your current angular dependencies to 1.3.x and add a resolution for angular to suppress the prompt:

{
  "name": "myapp",
  "version": "0.0.1",
  "dependencies": {
    "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-ui-router": "~0.2.10",
    "angular-ui-codemirror": "~0.1.6",
    "angular-elastic": "~2.4.0",
    "angular-local-storage": "~0.0.7",
    "angular-nanoscroller": "~0.2.1",
    "angular-sockjs": ">=0.0.1",
    "json3": "~3.3.1",
    "es5-shim": "~3.1.0",
    "jquery": "~2.1.1",
    "splitter": "*",
    "chance": "~0.5.6",
    "nanoscroller": "~0.8.4"
  },
  "resolutions": {
    "angular": "~1.3.x"
  }
}

这篇关于无法找到角度合适的版本 - 亭子安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆