Bower 总是安装最新版本而不是指定版本

Bower is always installing latest version instead of the specified version

无论 "bower.json" 文件中指定的版本如何,bower (v1.8.0) 都会忽略它并下载最新版本的库 available.It 不要求指定版本。降级到 Bower 的早期版本 (v1.3.8) 没有帮助:(。例如,我将 anuglarjs 指定为 1.5.8,但它下载了 1.6.4。

我的bower.json

    {
  "name": "XXXXXXXXXXXX",
  "homepage": "XXXXXXXXXXXX",
  "authors": [
    "XXXXXXXXXX"
  ],
  "description": "XXXXXXXXXXXX",
  "main": "",
  "overrides": {
    "bootstrap": {
      "main": [
        "./dist/css/bootstrap.min.css",
        "./fonts/glyphicons-halflings-regular.eot",
        "./fonts/glyphicons-halflings-regular.svg",
        "./fonts/glyphicons-halflings-regular.ttf",
        "./fonts/glyphicons-halflings-regular.woff",
        "./fonts/glyphicons-halflings-regular.woff2"
      ]
    },
    "pouchdb": {
      "main": [
        "./dist/pouchdb.min.js"
      ]
    },
    "cldrjs": {
      "ignore": true
    },
    "cldr-data": {
      "ignore": true
    },
    "globalize": {
      "ignore": true
    }
  },
  "license": "",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "jquery": "^2.2.3",
    "angular": "^1.5.8",
    "bootstrap": "^3.3.7",
    "angular-route": "^1.4.9",
    "toastr": "^2.1.3",
    "angular-toastr": "^2.1.1",
    "angular-cookies": "^1.5.8",
    "angular-translate": "^2.12.0",
    "angular-i18n": "^1.5.8",
    "angular-translate-loader-static-files": "^2.12.0",
    "angular-translate-storage-local": "^2.12.0",
    "angular-sanitize": "^1.5.8",
    "devextreme": "^16.1.7",
    "ngstorage": "^0.3.11",
    "angular-base64-upload": "^0.1.19",
    "pouchdb": "^6.0.7",
    "pouchdb-find": "^0.10.3",
    "angular-disable-all": "^0.0.2",
    "angular-loading-bar": "^0.9.0"
  }
}

去掉版本号前面的^符号。这意味着 "at least this version"。换句话说:如果版本等于或高于指定版本,它不会更新你的库,但如果你正在安装一个新的工作区,它将采用最新的。

这里有更多信息:What is the bower (and npm) version syntax?