ionic2-RC5发布了 ionic2-RC4 升级到 RC5 指南
发布于 10天前 作者 HsuanXyz 231 次浏览 来自 分享

RC5相比RC4的改动比较小,没有太多的性能提升,只是修复一些简单的BUG。 开发者关注的main.js体积过大,andorid启动速度过慢等的情况在我升级后并没有感觉到什么变化。 具体升级步骤如下

卸载之前的ionic

npm uninstall -g ionic

重新安装最新版本

npm install -g ionic

改变你的 package.json

"dependencies": {
    "@angular/common": "2.2.1",
    "@angular/compiler": "2.2.1",
    "@angular/compiler-cli": "2.2.1",
    "@angular/core": "2.2.1",
    "@angular/forms": "2.2.1",
    "@angular/http": "2.2.1",
    "@angular/platform-browser": "2.2.1",
    "@angular/platform-browser-dynamic": "2.2.1",
    "@angular/platform-server": "2.2.1",
    "@ionic/storage": "1.1.7",
    "ionic-angular": "2.0.0-rc.5",
    "ionic-native": "2.2.11",
    "ionicons": "3.0.0",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.26",
    "sw-toolbox": "3.4.0"
  },
  "devDependencies": {
    "@ionic/app-scripts": "1.0.0",
    "typescript": "2.0.9"
  }

在项目根目录执行

npm install

至此升级工作就完成了! 官方改动说明 2.0.0-rc.5

小广告 Ionic2.0 交流群:513752928

回到顶部