无法找到合适的角度版本

时间:2017-03-08 09:37:01

标签: angularjs

当我为我的应用程序运行bower install时,我收到此错误

无法找到适合角度的版本

{
"name": "o2o",
  "homepage": "********",
  "authors": [
    "***** <****@gmail.com>"
  ],
  "description": "Online to Offline Product",
  "main": "",
  "moduleType": [],
  "license": "MIT",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "frontend/lib",
    "test",
    "tests"
  ],
  "dependencies": {
    "angular": "~1.4.9",
    "angular-route": "~1.4.9",
    "angular-ui-router": "~0.2.17",
    "bootstrap-sass": "^3.3.6",
    "jquery": "~2.2.0",
    "bootstrap": "~3.3.6",
    "angular-sanitize": "^1.5.0",
    "bourbon": "^4.2.7"
  },
  "resolutions": {
    "angular": "1.5.3"
  }
}

任何人都可以帮我解决这个问题。

1 个答案:

答案 0 :(得分:0)

在分辨率和依赖关系中将1.5.3更改为1.5.X。它将采用最新的1.5版本。

使用这个json

 {
    "name": "o2o",
      "homepage": "https://github.com/Capillary/sharingan",
      "authors": [
        "anshulsao <anshul.sao@gmail.com>"
      ],
      "description": "Online to Offline Product",
      "main": "",
      "moduleType": [],
      "license": "MIT",
      "ignore": [
        "**/.*",
        "node_modules",
        "bower_components",
        "frontend/lib",
        "test",
        "tests"
      ],
      "dependencies": {
        "angular": "~1.5.x",
        "angular-route": "~1.4.9",
        "angular-ui-router": "~0.2.17",
        "bootstrap-sass": "^3.3.6",
        "jquery": "~2.2.0",
        "bootstrap": "~3.3.6",
        "angular-sanitize": "^1.5.0",
        "bourbon": "^4.2.7"
      },
      "resolutions": {
        "angular": "1.5.x"
      }
    }