我使用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
我想安装最新的不稳定版本的角度和它的依赖.
我的凉鞋版本是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 Tag/branch 1.2.0.-rc.2 does not exist
此外,我已经尝试删除bower_components文件夹,使用“bower cache clean”清理缓存,然后“bower install”.
但是我得到了相同的ENORESTARGET错误.
我究竟做错了什么?
角度版本中有错误.它应该是1.2.0-rc.2而不是1.2.0.-rc.2(参见0以后的额外点)
原文链接:https://www.f2er.com/angularjs/142669.html凉亭安装角度#1.2.0-rc.2