ionic-team / ionic-team/ionic-cli

Unable to create Ionic 4 Project with Inic CLI 4

Open
#4,460 1 comment 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
2k
Forks
682
PR merge metrics
No merged PRs in 30d

Description

**Description:**

I have installed Ionic CLI 4.12.0 to be able to create Ionic 4 Project. But, when I open my newly created project, I found out that my _package.json_ file contains dependencies for Ionic 5.

**"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"
}**

Is there any way to create Ionic 4 Project ?

**My `ionic info`:**

```
Ionic:

ionic (Ionic CLI) : 4.12.0

System:

NodeJS : v12.14.1
npm : 6.13.4
OS : Windows 10
```
Thank you

Contributor guide

Open the contributing guide

Research direction

Reproduce the project creation with Ionic CLI 4.12.0 and inspect the generated package.json, comparing its Angular and @ionic/angular dependencies with the requested Ionic 4 project. Check the CLI's available project templates or version-selection behavior. Done means the generated dependencies match Ionic 4, or the supported way to create that project is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.