我使用Yeoman搭建了一个AngularJS应用:
yo angular --minsafe
当我运行“bower list”命令时,会得到以下结果:
angular#1.0.8 (latest is 1.2.0-rc.2)
angular-mocks#1.0.8 (latest is 1.2.0-rc.2)
-angular#1.0.8 (latest is 1.2.0-rc.2)
angular-scenario#1.0.8 (latest is 1.2.0-rc.2)
-angular#1.0.8 (latest is 1.2.0-rc.2)
angular-scenario#1.0.8 (latest is 1.2.0-rc.2)
-angular#1.0.8 (latest is 1.2.0-rc.2)
es5-shim#2.0.12(latest is 2.1.0)
json3#3.2.5
我想安装最新的不稳定版本的angular及其依赖项。
我的bower版本是1.2.6。
我尝试做的是在bower.json中替换组件的版本:
{
"name": "testapp",
"version": "0.0.0",
"dependencies": {
"angular": "1.2.0.-rc.2",
"json3": "~3.2.4",
"es5-shim": "~2.0.8"
},
"devDependencies": {
"angular-mocks": "1.2.0.-rc.2",
"angular-scenario": "1.2.0.-rc.2"
}
}
执行以下命令:
bower update angular –force-latest
但是我收到了以下错误信息:
bower ENORESTARGET 标签/分支1.2.0.-rc.2不存在
我也尝试删除bower_components文件夹,使用“bower cache clean”清理缓存,然后运行“bower install”。 但我得到了相同的ENORESTARGET错误。
我做错了什么?