这是凉亭依赖:
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凉亭角#*
验证1.0.8对https://github.com/angular/bower-angular.git# * bower angular#&gt; = 1缓存 凉亭https://github.com/angular/bower-angular.git#1.2.0-rc.3 angular#&gt; = 1验证1.2.0-rc.3对 https://github.com/angular/bower-angular.git#&gt; = 1个凉亭 angular-translate#* not-cached https://github.com/PascalPrecht/bower-angular-translate.git# *凉亭 angular-translate#* resolve https://github.com/PascalPrecht/bower-angular-translate.git# *凉亭 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 凉亭8#angular-cookies ENOTFOUND套餐8未找到
我得到了我用凉亭安装的所有东西 - 什么是错的?
答案 0 :(得分:1)
dependencies
应该是对象文字,而不是数组。