kittencup / angular2-ama-cn

angular2 随便问
691 stars 101 forks source link

Angular2 rc 版在 VisualStudio 中怎么弄? #161

Open Imporial opened 8 years ago

Imporial commented 8 years ago

新版本连包都下不下来了

coollemen commented 8 years ago

"repository": { "type": "git", "url": "https://github.com/angularclass/angular2-webpack-starter.git" } 在package文件中加入这个试试,不行的话是npm版本问题,将vs的npm版本指向系统program files中的最新版

hstarorg commented 8 years ago

直接在package.json中引入

    "@angular/common": "^2.0.0-rc.1",
    "@angular/compiler": "2.0.0-rc.1",
    "@angular/core": "2.0.0-rc.1",
    "@angular/http": "2.0.0-rc.1",
    "@angular/platform-browser": "2.0.0-rc.1",
    "@angular/platform-browser-dynamic": "2.0.0-rc.1",
    "@angular/router": "^2.0.0-rc.1",
    "@angular/router-deprecated": "2.0.0-rc.1",
    "@angular/upgrade": "2.0.0-rc.1",

然后通过npm install安装。

Imporial commented 8 years ago

Very Good, @hstarorg 这个比较直接

hstarorg commented 8 years ago

@Imporial 忽略VS,按照前端的方式来整就是了。Angular2这个坑货,居然玩改名,害得我必须得替代一大堆文件。

Imporial commented 8 years ago

唉没办法,上了谷歌的贼船了

hstarorg commented 8 years ago

@Imporial 我也是,现在还在纠结如何平滑从1升级到2呢,业务模块是多个team写的,一说要修改代码,心都酸了。