如何使用鲍尔安装最新的不稳定AngularJS组件? [英] How to install latest unstable AngularJS components using Bower?

查看:108
本文介绍了如何使用鲍尔安装最新的不稳定AngularJS组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用脚手架的文书上士应用AngularJS:

I’ve scaffold an AngularJS app using Yeoman:

哟角-minsafe

yo angular –minsafe

当我运行亭子列表命令,我得到如下:

When I run "bower list" command I get following:

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

我想安装角最新版本的不稳定和它的依赖关系。

I would like to install the latest unstable versions of angular and it’s dependencies.

我的凉亭版本是1.2​​.6。

My bower version is 1.2.6.

我试图做的是替换bower.json组件的版本:

What I tried to do was replacing the versions of components in 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"
  }
}

和运行以下命令:

凉亭更新角度-force-最新

bower update angular –force-latest

这给了我以下错误:

凉亭ENORESTARGET标签/支1.2.0.-rc.2不存在

bower ENORESTARGET Tag/branch 1.2.0.-rc.2 does not exist

我也一直试图删除文件夹bower_components使用亭子缓存清理清除缓存,然后亭子安装。
但我得到了同样的错误ENORESTARGET。

Also I’ve tried to delete the bower_components folder, cleaning the cache using "bower cache clean" and then "bower install". But I got the same ENORESTARGET error.

我在做什么错了?

推荐答案

您有角的版本错误。它应该是 1.2.0-rc.2 而不是 1.2.0.-rc.2 (见额外的0点以后?)

You have error in angular version. It should be 1.2.0-rc.2 instead of 1.2.0.-rc.2 (see the extra dot after 0?)

凉亭安装角度#1.2.0-rc.2

这篇关于如何使用鲍尔安装最新的不稳定AngularJS组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆