0

这是凉亭依赖:

dependencies": [
        "angular#>=1.0.8 <1.2.0-rc.1",
        "restangular#1.1.6",
        "angular-bootstrap#0.6.0",
        "jquery#>=1.10.0 <1.11.0",
        "momentjs#2.2.1",
        "requirejs#2.1.8",
        "bootstrap#2.3.2",
        "underscore#>=1.5.2 <1.6.0",
        "angular-cookies",
        "angular-translate",
        "angular-translate-loader-static-files",
        "angular-resource",
        "angular-sanitize",
        "angular-mocks",
        "angular-scenario",
        "angular-loader",
        "FbAngular"

    ],
    "license": "All Rights Reserved",
    "private": true,
    "ignore": [
        "**/.*",
        "node_modules",
        "bower_components",
        "app/lib",
        "test",
        "tests"
    ]
}

但是当我尝试从命令行运行时:

bower install angular-translate

我得到这个奇怪的输出:

bower angular#* 缓存 https://github.com/angular/bower-angular.git#1.0.8 bower angular#*针对https://github.com/angular/bower-angular.git#
验证 1.0.8 * bower angular#>=1 缓存 https://github.com/angular/bower-angular.git#1.2.0-rc.3 bower angular#>=1 针对https://github验证 1.2.0-rc.3 .com/angular/bower-angular.git# >=1 bower angular-translate#* 未缓存 https://github.com/PascalPrecht/bower-angular-translate.git# * bower angular-translate#* 解析 https ://github.com/PascalPrecht/bower-angular-translate.git# * bower angular-translate#* 下载 https://github.com/PascalPrecht/bower-angular-translate/archive/1.1.0.tar.gz bower angular-translate#* extract archive.tar.gz bower angular-translate#* 已解决 https://github。 com/PascalPrecht/bower-angular-translate.git#1.1.0 bower 8#angular-cookies ENOTFOUND 找不到包 8

我用凉亭安装的所有东西都得到了它 - 有什么问题?

4

1 回答 1

1

dependencies应该是对象文字,而不是数组。

凉亭

于 2013-10-22T09:56:00.183 回答