Having this error and have not been able to resolve it after so many trials i have reinstalled the ionic cordova but still get this error when i want to use angular 2 (ionic start boxapp tabs --v2) [ERROR] Sorry! The --v1 and --v2 flags have been removed. but it works when i use --v but not --v2
Asked
Active
Viewed 5,357 times
5 Answers
1
On the console (cmd):
npm install -g cordova ionic
ionic start myApp tabs
For v1 projects, use the --type ionic1 flag:
ionic start myApp tabs --type ionic1

Patrick Hund
- 19,163
- 11
- 66
- 95

Onur Önder
- 311
- 1
- 7
- 20
-
1pls i want to run v2 project...this is my problem...by default it runs on v1 – nath Jun 06 '17 at 11:18
-
try this. npm install -g ionic@beta – Onur Önder Jun 06 '17 at 11:23
0
ionic start {project name} {template type} --type {ionic1/ionic-angular} e.g
ionic start todo blank --type ionic-angular
above command will create ionic 2 project for you and you can verify the same while CLI is creating the project
D:\Projects>ionic start sidemenunavigation blank --type=ionic-angular
√ Creating directory .\sidemenunavigation - done!
[INFO] Fetching app base
(https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz)
√ Downloading - done!
[INFO] Fetching starter template blank
(https://github.com/ionic-team/ionic2-starter-blank/archive/master.tar.gz
)
√ Downloading - done!
√ Updating package.json with app details - done!

Maniya Joe
- 761
- 6
- 24
-2
On the version 3.19.1 I used
ionic myDemo blank ionic2
On different versions i havent idea Try is easy!

Manuel
- 1