如何在Ionic v4中创建项目

时间:2018-04-23 14:48:34

标签: angular ionic-framework ionic3

我想开始玩新的Ionic v4。我该怎么做才能在其中创建一个新项目。

我通过npm install -g ionic@4.0.0-rc.5更新了全局安装。

现在,如果我ionic -v,我会4.0.0-rc.5

当我通过执行离子启动newproj空白来创建一个安装了新cli的新项目时,我在package.json中得到以下内容。

"dependencies": { "@angular/animations": "5.2.10", "@angular/common": "5.2.10", "@angular/compiler": "5.2.10", "@angular/compiler-cli": "5.2.10", "@angular/core": "5.2.10", "@angular/forms": "5.2.10", "@angular/http": "5.2.10", "@angular/platform-browser": "5.2.10", "@angular/platform-browser-dynamic": "5.2.10", "@ionic-native/core": "4.7.0", "@ionic-native/splash-screen": "4.7.0", "@ionic-native/status-bar": "4.7.0", "@ionic/storage": "2.1.3", "ionic-angular": "3.9.2", "ionicons": "3.0.0", "rxjs": "5.5.10", "sw-toolbox": "3.6.0", "zone.js": "0.8.26" } 请注意"离子角":" 3.9.2",

由于

1 个答案:

答案 0 :(得分:1)

ionic-angular最后一个版本是:“3.9.2”

请参阅documentation

如果你需要安装ionic-angular 4.0.0 alpha vesrion

 npm install ionic-angular@4.0.0-alpha.0