Cannot start ionic 2 empty project

I am trying to start an ionic 2 empty project, but it always creates an ionic project. What am I doing:

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

but when I open the project, it is still version 1. I tried to completely remove the ion:

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

but after that, when I type “ionic”, it shows that I have ionic v1.7.14. (This was done several times, and there were no errors).

+4
source share
4 answers

for an empty project you can give the following command

ionic start ProjectName blank --v2

for a tab template that you can specify

ionic start ProjectName tabs --v2 

- v2 for ion project 2

you can also include --ts to get typescript project

ionic start ProjectName blank --v2 --ts
+4
source

The -v1 and -v2 flags are currently removed.

ionic 1 empty project

myapp blank --type ionic1

2

myApp blank

3

myapp blank - angular

+1

, , . :

ionic start Example --v2

( , )

ionic start Example -v2
0

, @beta - 2.0.19

npm install -g ionic@beta

, CLI // Ionic@1.x - , , Ionic v1 - ionic@beta.

-1

Source: https://habr.com/ru/post/1629121/


All Articles