Open Imporial opened 8 years ago
"repository": { "type": "git", "url": "https://github.com/angularclass/angular2-webpack-starter.git" } 在package文件中加入这个试试,不行的话是npm版本问题,将vs的npm版本指向系统program files中的最新版
直接在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安装。
Very Good, @hstarorg 这个比较直接
@Imporial 忽略VS,按照前端的方式来整就是了。Angular2这个坑货,居然玩改名,害得我必须得替代一大堆文件。
唉没办法,上了谷歌的贼船了
@Imporial 我也是,现在还在纠结如何平滑从1升级到2呢,业务模块是多个team写的,一说要修改代码,心都酸了。
新版本连包都下不下来了