Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot start an ionic 2 blank project

I am trying to start an ionic 2 blank project but it always create an ionic 1 project. That's what I do:

npm install -g ionic@beta
ionic start Test --v2

but when I open the project it's still version 1. I have tried to remove ionic completely with:

sudo npm uninstall -g ionic
sudo npm uninstall -g ionic@beta
sudo npm uninstall -g cordova

but after that when I type "ionic" it's showing that I have ionic v1.7.14. (did it several times and there aren't any errors).

like image 602
charbinary Avatar asked Feb 17 '16 08:02

charbinary


2 Answers

for a blank project you can give the following command

ionic start ProjectName blank --v2

for tabs template you can give

ionic start ProjectName tabs --v2 

--v2 is for ionic 2 project

you can also include --ts for getting the typescript project

ionic start ProjectName blank --v2 --ts
like image 143
im_bhatman Avatar answered Oct 21 '22 03:10

im_bhatman


As of now The --v1 and --v2 flags have been removed.

ionic 1 blank project

ionic start myapp blank --type ionic1

ionic 2 blank project

ionic start myApp blank

ionic 3 blank project

ionic start myapp blank --type ionic-angular

like image 22
Joyal Avatar answered Oct 21 '22 01:10

Joyal