2017-08-29 80 views
3

使用命令ionic start myapp tabs。我們從版本2中檢索starterkit。但是我想啓動一個應用程序Ionic v3。離子CLI不是最新的?所有像其他命令一樣:離子生成?離子CLI啓動:starterkit v3?

+0

你能顯示'離子信息'的細節嗎? – Sampath

+0

CLI包: @離子/ CLI-utils的:1.9.2 離子(離子CLI):3.9.2 系統: 節點:v6.11.0 NPM:3.10.10 操作系統:Windows 7 –

+0

與離子開始:git >> https://github.com/ionic-team/ionic2-app-base/ ----- https://github.com/ionic-team/ionic2-starter-tabs/ - ---- V2不是V3 –

回答

2

此CLI工作正常。

ionic start myapp tabs 

你可以看到你的package.json文件,如below.On有"ionic-angular": "3.6.0",意味着Ionic 3應用與Angular 4+。沒有問題。

{ 
    "name": "MediaApp", 
    "version": "0.0.1", 
    "author": "Ionic Framework", 
    "homepage": "http://ionicframework.com/", 
    "private": true, 
    "scripts": { 
    "clean": "ionic-app-scripts clean", 
    "build": "ionic-app-scripts build", 
    "lint": "ionic-app-scripts lint", 
    "ionic:build": "ionic-app-scripts build", 
    "ionic:serve": "ionic-app-scripts serve" 
    }, 
    "dependencies": { 
    "@angular/common": "4.1.3", 
    "@angular/compiler": "4.1.3", 
    "@angular/compiler-cli": "4.1.3", 
    "@angular/core": "4.1.3", 
    "@angular/forms": "4.1.3", 
    "@angular/http": "4.1.3", 
    "@angular/platform-browser": "4.1.3", 
    "@angular/platform-browser-dynamic": "4.1.3", 
    "@ionic-native/core": "3.12.1", 
    "@ionic-native/splash-screen": "3.12.1", 
    "@ionic-native/status-bar": "3.12.1", 
    "@ionic/storage": "2.0.1", 
    "ionic-angular": "3.6.0", 
    "ionicons": "3.0.0", 
    "rxjs": "5.4.0", 
    "sw-toolbox": "3.6.0", 
    "zone.js": "0.8.12" 
    }, 
    "devDependencies": { 
    "@ionic/app-scripts": "2.1.3", 
    "typescript": "2.3.4" 
    }, 
    "description": "An Ionic project" 
} 
0

如果你想在更新到離子版本3中的命令林德型

npm update -g ionic 

那麼它將被更新到最新的離子版本,這是離子型3 然後進入源代碼你有你的代碼,按在窗口shift鍵文件點擊右鍵,然後你可以去,如果你使用Git bash命令行中有命令提示符下,你可以得到由只ricght clicking.in命令行中鍵入

ionic serve 

並按回車。 這件東西對我來說