Create ionic 4 Project

Hello Everyone, I’ve installed the latest version of Ionic CLI using npm install -g @ionic/cli and when I create a new project with ionic start command, this command creates Ionic 5 Project as you can see below:

"dependencies": {

    "@angular/common": "~9.1.6",

    "@angular/core": "~9.1.6",

    "@angular/forms": "~9.1.6",

    "@angular/platform-browser": "~9.1.6",

    "@angular/platform-browser-dynamic": "~9.1.6",

    "@angular/router": "~9.1.6",

    "@capacitor/core": "2.1.2",

    "@ionic-native/core": "^5.0.7",

    "@ionic-native/splash-screen": "^5.0.0",

    "@ionic-native/status-bar": "^5.0.0",

    "@ionic/angular": "^5.0.0",

    "rxjs": "~6.5.1",

    "tslib": "^1.10.0",

    "zone.js": "~0.10.2"

  }

How can I create Ionic 4 Project instead of Ionic 5 Project. Thank you

Downgrade your CLI version of ionic to 4 in global setting. then you can create ionic 4 version apps.

I really don’t think you want to do this. Please explain why you are trying.

1 Like

Why am I trying !!? Because I want to try Ionic 4 not Ionic 5

I downgraded ionic version to 4.12.0 and when i create a project and check versions on package.json

"dependencies": {

    "@angular/common": "~9.1.6",

    "@angular/core": "~9.1.6",

    "@angular/forms": "~9.1.6",

    "@angular/platform-browser": "~9.1.6",

    "@angular/platform-browser-dynamic": "~9.1.6",

    "@angular/router": "~9.1.6",

    "@ionic-native/core": "^5.0.7",

    "@ionic-native/splash-screen": "^5.0.0",

    "@ionic-native/status-bar": "^5.0.0",

    "@ionic/angular": "^5.0.0",

    "rxjs": "~6.5.1",

    "tslib": "^1.10.0",

    "zone.js": "~0.10.2"

  }

Here is a conversation with somebody who gave what I thought was a considerably more constructive answer to that question. You may especially be interested in the comments from one of the Ionic team members in that thread.

1 Like