【问题标题】:What does Bower mean when it says "unable to find a suitable version"?Bower 说“无法找到合适的版本”是什么意思?
【发布时间】:2014-04-14 17:47:05
【问题描述】:

当它说“无法找到合适的角度版本”时是什么意思?在我的 bower.json 中,我将 1.2.6 指定为角度版本。为什么这里给我 6 个选择,其中 5 个可能会导致我的项目停止工作?

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-scenario#1.2.6 
    2) angular#1.2.15 which resolved to 1.2.15 and is required by angled-horizon 
    3) angular#1.2.16 which resolved to 1.2.16 and is required by angular-animate#1.2.16 
    4) angular#>= 1.0.2 which resolved to 1.2.16 and is required by angular-ui-utils#0.1.1 
    5) angular#>=1 which resolved to 1.2.16 and is required by angular-bootstrap#0.10.0 
    6) angular#~1.2.10 which resolved to 1.2.16 and is required by angular-strap#2.0.1

另外,如果我使用! 将其持久化到 bower.json 会发生什么?

如果有帮助,这是我的 bower.json:

{
  "name": "angled-horizon",
  "version": "0.0.0",
  "dependencies": {
    "angular": "1.2.15",
    "json3": "3.2.6",
    "es5-shim": "2.1.0",
    "jquery": "1.10.2",
    "sass-bootstrap": "3.0.2",
    "angular-resource": "1.2.6",
    "angular-cookies": "1.2.6",
    "angular-sanitize": "1.2.6",
    "angular-route": "1.2.6",
    "angular-ui-utils": "0.1.1",
    "angular-animate": "1.2.6",
    "angular-bootstrap": "0.10.0"
  },
  "devDependencies": {
    "angular-mocks": "1.2.6",
    "angular-scenario": "1.2.6",
    "angular-ui-utils": "0.1.1"
  },
  "resolutions": {
    "angular": "1.2.15"
  }
}

【问题讨论】:

标签: angularjs bower


【解决方案1】:

我在网上找到了这个answer

你可以看一下,他们建议添加分辨率

"resolutions": {
    "angular": "1.2.0-rc.2"
  }

【讨论】:

    猜你喜欢
    • 2016-06-21
    • 2015-03-27
    • 2017-04-22
    • 2014-11-12
    • 1970-01-01
    • 1970-01-01
    • 2022-11-08
    • 2020-09-11
    • 2013-07-19
    相关资源
    最近更新 更多