Ionic CLI start : starterkit v3?

93 Views Asked by At

with the command ionic start myapp tabs. We retrieve the starterkit from version 2. But I want to start an application Ionic v3. Ionic CLI is not up to date? All like other commands: ionic generate ??

2

There are 2 best solutions below

0
On BEST ANSWER

This CLI is working perfectly fine.

ionic start myapp tabs

You can see that on your package.json file as shown below.On there "ionic-angular": "3.6.0", means Ionic 3 app with Angular 4+.No issues.

{
  "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
On

If you want to update in to ionic version 3 in command lind type

npm update -g ionic

then it will be updated to the latest ionic version,which is ionic 3 Then go to the source code file which you have your code, by pressing shift key in windows right click then you can go to command prompt in there if you using git bash command line you can get that by only ricght clicking.in command line type

ionic serve

and hit enter. This thing worked for me