如何安装Angular2 beta与Bower?

前端之家收集整理的这篇文章主要介绍了如何安装Angular2 beta与Bower?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图安装Angular2与Bower与命令bower install -S angular2并在控制台中有下一个消息:
$bower install -S angular2
bower angular2#*                cached git://github.com/angular/bower-angular.git#1.4.8
bower angular2#*              validate 1.4.8 against git://github.com/angular/bower-angular.git#*
bower angular#~1.4.8           install angular#1.4.8

angular#1.4.8 bower_components/angular

我的bower.json文件现在包含依赖关系部分的下一个信息:

"dependencies": {
  "angular": "angular2#~1.4.8"
}

而在bower_components路径中,我的角度是1.4.8.

那么,如何安装Angular2 beta与Bower?

我已经从github安装了命令bower install git@github.com:angular / angular.git:
$bower install git@github.com:angular/angular.git
bower angular#*             not-cached git@github.com:angular/angular.git#*
bower angular#*                resolve git@github.com:angular/angular.git#*
bower angular#*               checkout 2.0.0-build.ffbcb26.js
bower angular#*           invalid-Meta angular is missing "main" entry in bower.json
bower angular#*           invalid-Meta angular is missing "ignore" entry in bower.json
bower angular#*               resolved git@github.com:angular/angular.git#2.0.0-build.ffbcb26.js
bower angular#~2.0.0-build.ffbcb26.js          install angular#2.0.0-build.ffbcb26.js

angular#2.0.0-build.ffbcb26.js bower_components/angular

猜你在找的Angularjs相关文章